60 lines
1.4 KiB
Plaintext
60 lines
1.4 KiB
Plaintext
# ----------
|
|
# Eine aktuelle version von docker installieren
|
|
# ----------
|
|
|
|
|
|
|
|
# see also:
|
|
# https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-20-04-de
|
|
|
|
|
|
# Schritt 1 - Installieren von Docker
|
|
#
|
|
apt update
|
|
|
|
# einige vorausgesetzte Pakete, damit apt Pakete über HTTPS nutzen kann:
|
|
#
|
|
apt install apt-transport-https ca-certificates curl software-properties-common
|
|
|
|
# GPG-Schlüssel für das offizielle Docker-Repository hinzufügen:
|
|
#
|
|
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
|
|
|
|
# Docker-Repository zu APT-Quellen hinzufügen:
|
|
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable"
|
|
|
|
|
|
# Paketdatenbank mit den Docker-Paketen aus dem neu hinzugefügten Repo aktiaöisieren:
|
|
#
|
|
apt update
|
|
|
|
|
|
# Note!
|
|
#
|
|
# Sicherstellen, dass Docker aus dem Docker Repo und nicht aus dem Standard-Ubuntu-Repo
|
|
# installiert wird.
|
|
#
|
|
# dazu ausführen:
|
|
#
|
|
# apt-cache policy docker-ce
|
|
#
|
|
# Ausgaber von 'apt-cache policy docker-ce'etwa :
|
|
#
|
|
# agr-bbb:~ # apt-cache policy docker-ce
|
|
# docker-ce:
|
|
# Installed: (none)
|
|
# Candidate: 5:27.4.1-1~ubuntu.20.04~focal
|
|
# Version table:
|
|
# 5:27.4.1-1~ubuntu.20.04~focal 500
|
|
# 500 https://download.docker.com/linux/ubuntu focal/stable amd64 Packages
|
|
# ....
|
|
#
|
|
|
|
|
|
# Docker installieren:
|
|
#
|
|
apt install docker-ce
|
|
|
|
|
|
# !! Docker sollte nun installiert sein und auch nach dem booten automatisch starten. !!
|