Wiki Table of Contents


This document was prepared by user fehlix to guide users through the installation of Docker.

Setup Docker repository

Get Docker repository key

wget -O docker.gpg 

Verify Docker public KeyID : 0x8D81803C0EBFCD88

gpg   --keyid-format 0xlong docker.gpg 2>/dev/null
pub   rsa4096/0x8D81803C0EBFCD88 2017-02-22 [SCEA]
uid                             Docker Release (CE deb) <[email protected]>
sub   rsa4096/0x7EA0A9C3F273FCD8 2017-02-22 [S]

Add Docker repo-key to apt’s keyring
Check public-key and add to apt trusted keyring:

gpg  --keyid-format 0xlong docker.gpg 2>/dev/null | grep -sq 0x8D81803C0EBFCD88 && sudo apt-key add docker.gpg

Add Docker repository to apt’s sources.list

# For MX 19 : 
# For MX 18 : 
echo "deb [arch=amd64] $CODENAME  stable" | sudo tee /etc/apt/sources.list.d/docker.list

Refresh package lists:

sudo apt update

Simulate to check docker installation

sudo apt --simulate install docker-ce
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed: docker-ce-cli
Recommended packages:
  aufs-tools cgroupfs-mount | cgroup-lite pigz
The following NEW packages will be installed: docker-ce docker-ce-cli
0 upgraded, 3 newly installed, 0 to remove and 50 not upgraded.
Inst (1.2.6-3 Docker CE:stretch [amd64])
Inst docker-ce-cli (5:19.03.1~3-0~debian-stretch Docker CE:stretch [amd64])
Inst docker-ce (5:19.03.1~3-0~debian-stretch Docker CE:stretch [amd64])
Conf (1.2.6-3 Docker CE:stretch [amd64])
Conf docker-ce-cli (5:19.03.1~3-0~debian-stretch Docker CE:stretch [amd64])
Conf docker-ce (5:19.03.1~3-0~debian-stretch Docker CE:stretch [amd64])

Install docker

sudo apt install docker-ce

3 thoughts on “Docker”

Leave a Reply to Andris Cancel reply

Do NOT follow this link or you will be banned from the site!