Debian 11 在国内网络环境下安装 Docker 环境
具体参考 阿里云官方文档
以下命令都是在 root 用户下执行
配置方法
1: 安装必要的一些系统工具
apt -y install apt-transport-https ca-certificates curl software-properties-common
2: 安装GPG证书
curl -fsSL https://mirrors.aliyun.com/docker-ce/linux/debian/gpg | apt-key add -
3: 写入软件源信息
add-apt-repository "deb [arch=amd64] https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/debian $(lsb_release -cs) stable"
4: 更新并安装Docker-CE
apt update
apt install docker-ce