curl -sSL https://get.daocloud.io/docker | sh
#阿里云安装
curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun
https://mirror.tuna.tsinghua.edu.cn/help/docker-ce/
# 如您使用 curl
export DOWNLOAD_URL="https://mirrors.tuna.tsinghua.edu.cn/docker-ce"
curl -fsSL https://get.docker.com/ | sudo -E sh
# 如您使用 wget
export DOWNLOAD_URL="https://mirrors.tuna.tsinghua.edu.cn/docker-ce"
wget -O- https://get.docker.com/ | sudo -E sh
curl -fsSL https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
sudo apt-get install docker-ce
https://blog.csdn.net/emgexgb_sef/article/details/126642581
加速代理
https://dockerproxy.com/
Docker中国区官方镜像:
https://registry.docker-cn.com
网易:
http://hub-mirror.c.163.com
ustc:
https://docker.mirrors.ustc.edu.cn
中国科技大学:
https://docker.mirrors.ustc.edu.cn
阿里云:
https://cr.console.aliyun.com/
{
"registry-mirrors" : [
"https://hub-mirror.c.163.com",
"https://registry.aliyuncs.com",
"https://registry.docker-cn.com",
"https://docker.mirrors.ustc.edu.cn"
]
}
#腾讯
{
"registry-mirrors" : ["https://mirror.ccs.tencentyun.com"]
}
#清华
#中科大
{
"registry-mirrors" : ["https://docker.mirrors.ustc.edu.cn"]
}
#163
{
"registry-mirrors" : ["https://hub-mirror.c.163.com"]
}
#阿里【私有】
{
"registry-mirrors" : ["https://registry.aliyuncs.com" ]
}
#其它
{
"registry-mirrors" : ["https://registry.docker-cn.com" ]
}