Launch Docker containers on Linux.

Diese Seite gibt es auch in Deutsch

Instructions for installing Docker can be found on the manufacturer's site. For Debian / Ubuntu, I did the installation as follows.

Docker Engine vs. Docker Desktop

For Windows and MAC, Docker is available as Docker Desktop. The base for Docker on Windows and MAC provides a Linux virtual machine that allows Docker containers to run. In contrast, Linux with Docker Engine can use its own kernel and run Docker containers without a VM. So for Linux, I would use Docker Engine and not Docker Desktop:

sudo apt-get install ca-certificates curl gnupg lsb-release
sudo mkdir -p /etc/apt/keyrings
curl -fsSL | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli docker-compose-plugin

The current version, see:

Alternative: Ubuntu Server - Server Snaps

When setting up an Ubuntu server (, Docker can be selected directly during installation:

The Docker Container Runtime including Docker-compose is installed. 

Note: Snap has different default paths than a normal Docker installation: /var/snap/docker/common/var-lib-docker/. However, since Docker takes care of its files, it should not make any difference in practice.

📢 A new post will probably be linked here on 2022-11-21: Install Ubuntu Server allow push notifications?


Docker-compose allows multiple Docker containers to be stored in a common docker-compose.yml file, allowing them to be started or upgraded together. Docker-compose can be added with the following commands:

sudo apt install docker-compose

Run Docker for a specific user without root

To allow the logged in user to execute Docker commands without "root", the user can be authorized as follows:

me@l1:~$ sudo apt install acl
me@l1:~$ sudo setfacl -m user:$USER:rw /var/run/docker.sock

Instructions for the following platforms

For the following platforms, there is a corresponding Docker installation guide on the vendor site:

  • Docker Desktop for Linux
  • Docker Desktop for Mac (macOS)
  • Docker Desktop for Windows
  • CentOS
  • Debian
  • Fedora
  • Raspbian
  • RHEL
  • SLES
  • Ubuntu
  • Binaries


positive Bewertung({{pro_count}})
Rate Post:
{{percentage}} % positive
negative Bewertung({{con_count}})

THANK YOU for your review!

Updated: 2022-10-04 von Bernhard

Top articles in this section

Home Assistant Docker Conbee 2 and Zigbee2MQTT / deCONZ
Thanks to numerous integration options,Home Assistant is a simple platform for controlling a wide range of smart home devices. Compared to ioBroker, I found it much easier to get started with Home Assistant. While for ioBroker I was still searching for which frontend I could use for my dashboards, with Home-Assistant I had a ready-made system out of the box. Home Assistant's Lovelance dashboards can be easily clicked together in the GUI and adapted for special customizations in the code editor...

Running Docker Mailserver yourself | a field report
With the help of a suitable Docker image, it is relatively easy to run a mail server yourself. I originally used the integrated mail server of the Host Europe vServer (Plesk) and came across a very simple Docker container while looking for a replacement. The lightweight container provides a mail server without a graphical management interface, but can be managed with a few simple commands. Any email client can be used to send and receive the mails, for this POP3 or IMAP is offered for receiving...

Nextcloud Server Docker | Setup + https: Let's Encrypt [ssl]
To synchronize contacts, appointments, and photos of my NAS, I tested Nextcloud and thus turned my back on other cloud providers for my private data. Thanks to Docker, the installation is easier and more flexible than ever, allowing Nextcloud to run on almost any hardware.

Questions / Comments

By continuing to browse the site, you agree to our use of cookies. More Details