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

5 thoughts on “Docker”

  1. This is what I get when I attempt to do this:

    wget -O docker.gpg
    –2020-03-19 19:18:57–
    Resolving (…,,, …
    Connecting to (||:443… connected.
    ERROR: The certificate of ‘’ is not trusted.
    ERROR: The certificate of ‘’ doesn’t have a known issuer.

    Got Docker running after installing package from MX Package Installer. Can get version by entering command on terminal. But, will not connect to dockerhub because of this certificate issue. Pulling up
    the docker sites on browser, says has perfectly good certificate. Have put in proxy info in two places, and
    seems to be going through the proxy alright but hits the certificate problem. Trying to follow the instructions in this article, run into brick wall on certificates.

    Is there away to get around this block?


Leave a Reply to serg Cancel reply

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