The officially official Devuan Forum!

You are not logged in.

#1 2024-04-26 20:49:56

Koratsuki84
Member
Registered: 2020-09-21
Posts: 3  

Install Docker on Devuan

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

#2 2024-04-27 02:29:43

jaromil
Member
Registered: 2016-11-28
Posts: 32  
Website

Re: Install Docker on Devuan

Thanks, this is very handy!


Not reading often here, if urgent contact me via E-Mail: J @ Dyne.org
GPG fingerprint: 6113 D89C A825 C5CE DD02  C872 73B3 5DA5 4ACB 7D10

Offline

#3 2024-04-27 12:58:12

boughtonp
Member
From: UK
Registered: 2023-01-19
Posts: 212  
Website

Re: Install Docker on Devuan

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

Board footer