#1、安装依赖模快apt-get install apt-transport-https ca-certificates curl gnupg2
#2、添加源密钥文件
#Debian12curl -fsSL https://mirrors.ustc.edu.cn/docker-ce/linux/debian/gpg|apt-key add -#Debian13curl -fsSL https://mirrors.ustc.edu.cn/docker-ce/linux/debian/gpg > /etc/apt/keyrings/docker-ce.gpg
#3、添加国内源#Debian12
vim /etc/apt/source.listdeb [arch=amd64] https://mirrors.ustc.edu.cn/docker-ce/linux/debian bookworm stable
#Debian13:
deb [signed-by=/etc/apt/keyrings/docker-ce.gpg] https://mirrors.ustc.edu.cn/docker-ce/linux/debian trixie stable
#4、开始安装
apt-get update && apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
.
.
.