安装docker
apt-get -y update
可能会出现404
此时:
cd /etc/apt/sources.list.d
root@ubuntu:~# cd /etc/apt/sources.list.d
root@ubuntu:/etc/apt/sources.list.d# ls
docker.list
root@ubuntu:/etc/apt/sources.list.d# cat docker.list
deb [arch=amd64] https://mirror.azure.cn/docker-ce/linux/ubuntu xenial stable
如果出现的镜像为:
请删除:
即:
如果已经使用了 Aliyun 脚本安装并成功的
请先卸载 Docker,命令为:apt-get autoremove docker-ce
删除 /etc/apt/sources.list.d 目录下的 docker.list 文件
使用 AzureChinaCloud 镜像脚本重新安装,命令为:sudo sh get-docker.sh --mirror AzureChinaCloud
重新安装: