Thursday, September 10, 2020

How To Run Nextcloud in Docker Container On Ubuntu 20.04 LTS

 Video Tutorial - https://youtu.be/ExvNhU3EaKc

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

 Nextcloud is the most deployed on-premises file share and collaboration platform. - https://nextcloud.com/
Docker, and containers, are a new way of running software that is revolutionizing software development and delivery.
Docker container is a virtualized run-time environment where users can isolate applications from the underlying system.
https://hub.docker.com/_/nextcloud/
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Testing Environment:Ubuntu 20.04 LTS             Hostname - www.yourdomain.com  - ip Address - 192.168.1.10
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
apt update ; apt install -y build-essential net-tools curl git software-properties-common neofetch apt-transport-https ca-certificates curl gnupg-agent docker.io docker-compose

systemctl enable --now docker ; docker --version ; docker-compose version
usermod -aG docker $USER ; newgrp docker

docker run --name mariadb -v mariadb:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=StrongPassword -d mariadb
docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' mariadb
172.17.0.2

docker run --name nextcloud -v nextcloud:/var/www/html -d -p 8080:80 nextcloud
docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' nextcloud

docker ps
http://192.168.1.10:8080

docker ps -q

docker stop `docker ps -q`   - docker stop 562e62f05a3a
docker start`docker ps -q`   - docker start 562e62f05a3a
docker rm 

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

1 comment:

  1. I was going crazy trying to use the db user... but it worked with the root db user so thank you!

    ReplyDelete