Docker.io auf Debian installieren

Docker.io auf Debian installieren
Photo by https://www.pexels.com/@pixabay/

Grundlagen schaffen:

apt-get install apt-transport-https ca-certificates curl software-properties-common

Installation

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
apt-get install docker-ce docker-ce-cli

Konfiguration

cat > /etc/docker/daemon.json <<EOF
{
  "exec-opts": ["native.cgroupdriver=systemd"],
  "log-driver": "json-file",
  "log-opts": {
    "max-size": "100m"
  },
  "live-restore": true
}
EOF

Service neu starten

systemctl restart docker

Powered by netcup.com