Docker Installation in Debian 10

Zuerst allgemeine Pakete runterladen.

su -
apt-get install \
    apt-transport-https \
    ca-certificates \
    curl \
    gnupg-agent \
    software-properties-common

Docker GPG Schlüssel installieren:

curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -

Überprüfen ob der Key eingetragen wurde:

apt-key fingerprint 0EBFCD88

Die Ausgabe sollte so aussehen:

pub   4096R/0EBFCD88 2017-02-22
      Key fingerprint = 9DC8 5822 9FC7 DD38 854A  E2D8 8D81 803C 0EBF CD88
uid                  Docker Release (CE deb) <docker@docker.com>
sub   4096R/F273FCD8 2017-02-22

Stable Repository hinuzufügen:

add-apt-repository \
   "deb [arch=amd64] https://download.docker.com/linux/debian \
   $(lsb_release -cs) \
   stable"

Die Docker Pakete installieren:

apt-get update
apt-get install docker-ce docker-ce-cli containerd.io

Docker Compose Installation:

apt install docker-compose