"Docker" -Instalación (Debian) @ 20210121

Docker 19.03.13 en Debian GNU / Linux 10 (buster)

Instalar Docker Engine en Debian | Documentación de Docker

#### 卸载 旧版 Docker 服务
systemctl stop docker.service # 18.09.1 
apt-get remove docker.io runc 

#### 安装 仓库
apt-get update 
apt-get install apt-transport-https ca -ificates curl gnupg- agent software-properties-common 
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add - 
add-apt-repository "deb [arch = amd64] https://download.docker.com/linux/debian $ (lsb_release -cs) estable" 

#### 安装 Docker 服务
apt-get update 
apt-cache madison docker-ce # 查看 版本
apt-get install docker-ce = 5: 19.03.13 ~ 3-0 ~ debian-buster \ 
    docker-ce-cli = 5: 19.03.13 ~ 3-0 ~ debian- buster \ 
    containerd.io 
# apt-get install docker-ce docker-ce-cli containerd.io

Docker 19.03.12 en Ubuntu 18.04.4 LTS

Instalar Docker Engine en Ubuntu | Documentación de Docker

# Elimina la versión anterior 
apt-get remove docker docker-engine docker.io containerd runc 

# Agrega el almacén oficial 
apt-get update 
apt-get install -y apt-transport-https ca -ificates curl gnupg-agent software-properties-common 
curl- fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add- 
apt-key fingerprint 0EBFCD88 # Verificar 
add-apt-repository \ 
   "deb [arch = amd64] https: //download.docker. com / linux / ubuntu \ 
   $ (lsb_release -cs) \ 
   stable " 

# Servicio de instalación 
apt-get update 
apt-get install -y docker-ce = 5: 19.03.12 ~ 3-0 ~ ubuntu-bionic \ 
    docker-ce- cli = 5: 19.03.12 ~ 3-0 ~ ubuntu-bionic \ 
    containerd.io 

# El servicio se inicia automáticamente 
systemctl start docker.service
systemctl enable docker.service
systemctl status docker.service 

#测试
docker run --rm hello-world

Docker 19.03.12 en Ubuntu 20.04.4 LTS

Instalar Docker Engine en Ubuntu | Documentación de Docker

# Elimina la versión anterior 
apt-get remove docker docker-engine docker.io containerd runc 

# Agrega el almacén oficial 
apt-get update 
apt-get install -y apt-transport-https ca -ificates curl gnupg-agent software-properties-common 
curl- fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add- 
apt-key fingerprint 0EBFCD88 # Verificar 
add-apt-repository \ 
   "deb [arch = amd64] https: //download.docker. com / linux / ubuntu \ 
   $ (lsb_release -cs) \ 
   stable " 

# Servicio de instalación 
apt-get update 
apt-get install -y docker-ce = 5: 20.10.1 ~ 3-0 ~ ubuntu-focal \ 
    docker-ce- cli = 5: 20.10.1 ~ 3-0 ~ ubuntu-focal \ 
    containerd.io 

# El servicio se inicia automáticamente 
systemctl start docker.service
systemctl enable docker.service
systemctl status docker.service 

#测试
docker run --rm hello-world

referencias

WikiNotes / 安装 (Debian)
docker docs / Acerca de Docker CE

Supongo que te gusta

Origin blog.csdn.net/u013670453/article/details/112970339
Recomendado
Clasificación