阿里云服务器 Alibaba Cloud Linux 3 通过内网源安装docker,官方的文档是使用公网镜像的。
dnf config-manager --add-repo=http://mirrors.cloud.aliyuncs.com/docker-ce/linux/centos/docker-ce.repo
cd /etc/yum.repos.d/
sed -i 's/mirrors.aliyun.com/mirrors.cloud.aliyuncs.com/' docker-ce.repo
sed -i 's/https/http/' docker-ce.repo
dnf -y install docker-ce --nobest
systemctl start docker
systemctl enable docker