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

3 thoughts on “Docker”

Leave a Comment

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