Docker 20.10 on Devuan 4: Install and Run container
- Infrastructure and operations
- Published
- 2 min read
- @nabbisen
Table of contents
Summary Summary
This post shows how to install Docker (opens in a new tab) and run vm on Devuan (opens in a new tab), a systemd (opens in a new tab)-free fork of Debian (opens in a new tab).
Environment Environment
- OS: Devuan Chimaera (opens in a new tab) (4)
- Virtualization: Docker 20.10 (opens in a new tab)
Tutorial Tutorial
All doas (opens in a new tab) from OpenBSD’s (opens in a new tab) can be replaced with sudo (opens in a new tab).
Install package Install package
Just run:
$ doas apt install docker-compose
Configure user Configure user
It is necessary to use Docker without sudo.
$ doas /usr/sbin/usermod -a -G docker ${MY_USER}
Then reboot your machine. Now you are ready.
Get container image Get container image
For example:
$ docker pull mariadb
Create container Create container
It is optional. In case of MariaDB, files in the specific path should be stored in volume to be permanent:
$ docker volume create mariadb-dev
Well, run docker run:
$ docker run \
--name mariadb-dev \
-v mariadb-dev:/var/lib/mysql \
-e MARIADB_ROOT_PASSWORD=${DB_SECRET} \
-d \
mariadb:latest
Work with your vm Work with your vm
You will be able to connect to your database 😉 with:
- host = localhost
- port = 3306
- db user = root
- db password = ${DB_SECRET}
Conclusion Conclusion
As to Podman (opens in a new tab), which can be alternative to Docker, it is available, too, whose version is, however, 3 (opens in a new tab) on current Devuan although the latest is 4 (opens in a new tab).
🌱 🤖 Happy virtualization 🤖 🎶
More on: Containers and virtual machines
-
With VirtualBox 7.0, installing OpenBSD 🐡 7.3 as guest on Artix Linux 🐧 as host failed.
-
It is not so difficult to install Podman on Artix Linux, based on Arch Linux and systemd-free.
-
Podman is an engine for virtualization to create and maintain containers on virtual machines.
Scqr [secureal]
Scqr [secureal]: the engineering practice of Reflerd Inc. (opens in a new tab)
Comments and feedback are welcome.