Running OwnCloud in Docker on Linux
i12bretro
#OwnCloud #Docker #HomeLab
Full steps can be found at https://i12bretro.github.io/tutorials/0564.html
What is OwnCloud?
OwnCloud is a suite of client-server software for creating file hosting services and using them. OwnCloud is functionally very similar to the widely used Dropbox, with the primary functional difference being that OwnCloud is free and open-source, and thereby allowing anyone to install and operate it without charge on a private server. - https://en.wikipedia.org/wiki/OwnCloud
Installing Docker
- Log into the Linux based device
- Run the following commands in the terminal
install prerequisites
sudo apt install apt-transport-https ca-certificates curl software-properties-common gnupg-agent -yadd docker gpg key
curl -fsSL https://download.docker.com/linux/$(awk -F'=' '/^ID=/{ print $NF }' /etc/os-release)/gpg | sudo apt-key add -add docker software repository
sudo add-apt-repository "deb [arch=$(dpkg --print-architecture)] https://download.docker.com/linux/$(awk -F'=' '/^ID=/{ print $NF }' /etc/os-release) $(lsb_release -cs) stable"install docker
sudo apt install docker-ce docker-compose containerd.io -yenable and start docker service
sudo systemctl enable docker && sudo systemctl start dockeradd the current user to the docker group
sudo usermod -aG docker $USERreauthenticate for the new group membership to take effect
su - $USER
Running OwnCLoud
- Now that Docker is installed, run the following commands to setup the OwnCloud Docker container and run it
create working directories
mkdir /home/$USER/docker/mariadb -p && mkdir /home/$USER/docker/owncloud -pset owner of working directories
sudo chown "$USER":"$USER" /home/"$USER"/docker -Rcreate owncloud network
docker network create owncloudrun the mariadb docker container
docker run -d --name mariadb --network owncloud --network-alias db -e MYSQL_ROOT_PASSWORD=r00tp@ss -e MYSQL_USER=owncloud_rw -e MYSQL_PASSWORD=OwnCl0ud! -e MYSQL_DATABASE=owncloud -v /home/$USER/docker/mariadb:/var/lib/mysql --restart=unless-stopped mariadb:latestrun the owncloud docker container
docker run -d --name owncloud --network owncloud -p ... https://www.youtube.com/watch?v=wSvikW1cEOE
2021-10-18
0.47022382 LBC
Copyrighted (contact publisher)
21518317 Bytes