The officially official Devuan Forum!

You are not logged in.

#1 Documentation » Install Docker on Devuan » 2024-04-26 20:49:56

Koratsuki84
Replies: 2

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! 😎👍

#2 Documentation » Wireguard server with Docker on Devuan » 2023-09-24 18:20:19

Koratsuki84
Replies: 0

This is a tutorial to get up and running Wireguard VPN on Devuan using Docker.

First, Docker:

sudo apt install -y docker.io docker-compose
sudo groupadd docker
sudo usermod -aG docker $USER
newgrp docker

Next, Composer:

cd /opt
nano docker-compose.yml

Inside:

version: "2.1"
services:
  wireguard:
    container_name: wg-manager
    image: perara/wg-manager
    restart: always
#    sysctls:
#      net.ipv6.conf.all.disable_ipv6: 0  # Required for IPV6
    cap_add:
      - NET_ADMIN
    ports:
       - 51800-51900:51800-51900/udp
       - 8888:8888
    volumes:
      - ./wg-manager:/config
    environment:
      HOST: 0.0.0.0
      PORT: 8888
      ADMIN_USERNAME: admin
      ADMIN_PASSWORD: MyS3curEPa$sw0Rd*-+
      WEB_CONCURRENCY: 1

Save and close.

Run it:

docker-compose up -d

On the browser:

http://URL_of_your_Server:8888

Remember:

ADMIN_USERNAME: admin
ADMIN_PASSWORD: MyS3curEPa$sw0Rd*-+

Enter web interface and generate as many profiles as you might need. Don't use IPv6 or enable it on compose, but in my experience, has some issues with connection. At least, on Linode.

Enabling it on KDE network manager over console:

nmcli connection import type wireguard file ./Downloads/wireguard_profile.conf

Done. Adjust and enjoy. Hope that helps. 😎👍

#3 Re: Devuan » Debian has fallen. What now? » 2020-09-21 19:25:26

Sad to read responses like that one. I hope common sense is not dead yet, and when @larsH gets home and drinks a beer[or a tea it doesn't matter], think about his way to write others.

We are not trolling, we just want to try to understand, and need a little help from de admins. Not trolling, we are not kids, come on...

Having a forum on the internet and doing support from a linux distro, comes with certain responsability and attachment to users, never forget that. Kind regards to all.

Board footer

Forum Software