You are not logged in.
Pages: 1
A little how-to on how to install Docker and Docker-Compose on Devuan
Note: This works on Debian/Ubuntu.
Update system:
sudo apt update && sudo apt dist-upgrade -y
Install Docker
sudo apt install -y docker.io
If you want to run docker as a normal user:
sudo groupadd docker
sudo usermod -aG docker $USER
newgrp docker
If you have problems with Docker mirrors[blockade], you can add more mirrors[example config]:
sudo nano /etc/docker/daemon.json
{
"max-concurrent-downloads": 5,
"registry-mirrors": [
"https://rw21enj1.mirror.aliyuncs.com",
"https://dockerhub.azk8s.cn",
"https://reg-mirror.qiniu.com",
"https://hub-mirror.c.163.com",
"https://docker.mirrors.ustc.edu.cn",
"https://1nj0zren.mirror.aliyuncs.com",
"https://quay.io",
"https://docker.mirrors.ustc.edu.cn",
"http://f1361db2.m.daocloud.io",
"https://registry.docker-cn.com"
]
}
Restart Docker after changes in the configuration file:
Init systems[Devuan in this case]
sudo /etc/init.d/docker restart
SystemD systems[remember, this works on Debian/Ubuntu]:
sudo systemctl restart docker
Docker-Compose:
==
Downloading/Installing in one line:
sudo wget -c https://github.com/docker/compose/releases/download/v2.27.0/docker-compose-`uname -s`-`uname -m` -O /usr/local/bin/docker-compose; sudo chmod +x /usr/local/bin/docker-compose
Proxy for Docker[in case you might need it]:
Init systems. Edit and adjust:
nano /etc/default/docker
http_proxy="http://user:password@proxy.domain.com:3128"
https_proxy="http://user:password@proxy.domain.com:3128"
no_proxy="localhost,127.0.0.1,::1"
And restart Docker.
sudo /etc/init.d/docker restart
SystemD systems:
sudo nano /etc/systemd/system/docker.service.d/http-proxy.conf
[Service]
Environment="HTTP_PROXY=http://user:password@proxy.domain.com:3128"
Environment="HTTPS_PROXY=http://user:password@proxy.domain.com:3128"
Environment="NO_PROXY="localhost,127.0.0.1,::1"
And restart Docker:
sudo systemctl daemon-reload
sudo systemctl restart docker
Enjoy! 😎👍
Offline
Running sudo apt update && sudo apt dist-upgrade -y is unnecessary.
Tutoring people to suppress confirmation prompts on any command is rude, but on a dist-upgrade - where one doesn't know the side-effects - it is doubly so.
3.1415P265E589T932E846R64338
Offline
Pages: 1