Wiki Table of Contents

Docker

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  https://download.docker.com/linux/debian/gpg 

Verify Docker public KeyID : 0x8D81803C0EBFCD88
Manually:

gpg   --keyid-format 0xlong docker.gpg 2>/dev/null
pub   rsa4096/0x8D81803C0EBFCD88 2017-02-22 [SCEA]
      9DC858229FC7DD38854AE2D88D81803C0EBFCD88
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 : 
CODENAME=buster
# For MX 18 : 
CODENAME=stretch
echo "deb [arch=amd64] https://download.docker.com/linux/debian $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:
  containerd.io docker-ce-cli
Recommended packages:
  aufs-tools cgroupfs-mount | cgroup-lite pigz
The following NEW packages will be installed:
  containerd.io docker-ce docker-ce-cli
0 upgraded, 3 newly installed, 0 to remove and 50 not upgraded.
Inst containerd.io (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 containerd.io (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 https://download.docker.com/linux/debian.gpg
    –2020-03-19 19:18:57– https://download.docker.com/linux/debian.gpg
    Resolving download.docker.com (download.docker.com)… 13.35.126.45, 13.35.126.76, 13.35.126.16, …
    Connecting to download.docker.com (download.docker.com)|13.35.126.45|:443… connected.
    ERROR: The certificate of ‘download.docker.com’ is not trusted.
    ERROR: The certificate of ‘download.docker.com’ 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?
    thanks

    Reply

Leave a Comment

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