Avoid both the use of obscure “convenience script” and the installation of out-of-tree kernel module.
Import Docker Release Key
1 |
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key --keyring /etc/apt/trusted.gpg.d/docker.gpg add - |
Setup Docker Suite
Create file /etc/apt/sources.list.d/docker.list
, with following distribution-specific content.
Debian 10 (Buster)
1 |
deb [arch=amd64] https://download.docker.com/linux/debian/ buster stable |
Supported architecture: amd64
, armhf
, arm64
.
Raspberry Pi OS (Raspbian) 10 (Buster)
1 |
deb [arch=armhf] https://download.docker.com/linux/raspbian/ buster stable |
Supported architecture: armhf
.
Ubuntu 20.04 (Focal Fossa)
1 |
deb [arch=amd64] https://download.docker.com/linux/ubuntu/ focal stable |
Supported architecture: amd64
, arm64
.
Install Docker
Docker supports aufs
storage driver and it was required on some old systems for Docker to run. Being an out-of-tree kernel module, its installation relies on DKMS and thus sometimes fails to compile or load.
But then we have overlay2
, which is now the preferred storage driver, for all currently supported Linux distributions, and requires no extra configuration.
We might just install Docker without aufs
— to save some space and keep ourselves away from hassle.
To do so,
1 2 3 |
sudo apt update sudo apt-mark hold aufs-tools sudo apt install docker-ce |