ComputerBasForum

Hier tips en tricks

Je bent niet ingelogd.

#1 2020-08-26 15:48:36

Bas
Administrator
Geregistreerd: 2019-11-10
Posts: 79

Docker

docker:

sudo apt install apt-transport-https ca-certificates curl gnupg2 software-properties-common

curl -fsSL [url]https://download.docker.com/linux/debian/gpg[/url] | sudo apt-key add -

sudo add-apt-repository "deb [arch=amd64] [url]https://download.docker.com/linux/debian[/url] $(lsb_release -cs) stable"

apt-cache policy docker-ce

sudo apt update

sudo apt install docker-ce

sudo systemctl status docker

sudo docker run hello-world

Done!

Mailserver in docker:

sudo docker pull tvial/docker-mailserver:latest

curl -o setup.sh [url]https://raw.githubusercontent.com/tomav[/url] … r/setup.sh; chmod a+x ./setup.sh

curl -o docker-compose.yml [url]https://raw.githubusercontent.com/tomav[/url] … e.yml.dist

curl -o .env [url]https://raw.githubusercontent.com/tomav[/url] … /.env.dist

curl -o env-mailserver [url]https://raw.githubusercontent.com/tomav[/url] … erver.dist

sudo apt install docker-compose

NextCloud in Docker:

sudo docker run --name mariadb -v mariadb:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=secret-pass -d mariadb

sudo docker ps

sudo docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' mariadb

sudo docker run --name nextcloud -v nextcloud:/var/www/html -d -p 8080:80 nextcloud

sudo docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' nextcloud

sudo docker ps

Remove:

docker rm nextcloud
docker rm docker-mailserver

Offline

Forum footer

Powered by FluxBB 1.5.11