阿里云docker加速网址(免费)
https://cr.console.aliyun.com/
容器镜像服务(页面左侧) – > 镜像工具 – > 镜像加速器
windows docker desktop
没有阿里云账号的自行注册(免费)
{
"builder": {
"gc": {
"defaultKeepStorage": "20GB",
"enabled": true
}
},
"experimental": false,
"features": {
"buildkit": true
},
"registry-mirrors": ["此处写你的加速地址,如:https://你的地址.mirror.aliyuncs.com"]
}
ubuntu / centos
通过修改daemon配置文件/etc/docker/daemon.json来使用加速器
sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-'EOF'
{"registry-mirrors": ["此处写你的加速地址,如:https://你的地址.mirror.aliyuncs.com"]}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker