Docker:在Debian/Ubuntu上快速安装docker-ce

#1、安装依赖模快
apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common

#2、添加源密钥文件
curl -fsSL https://mirrors.ustc.edu.cn/docker-ce/linux/debian/gpg|apt-key add -

#3、添加国内源
vim /etc/apt/source.list
#添加如下行
deb [arch=amd64] https://mirrors.ustc.edu.cn/docker-ce/linux/debian bookworm stable

#4、开始安装
apt-get update && apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

.

.

.

Comments

No comments yet. Why don’t you start the discussion?

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注