Docker 镜像加速源设置
Docker 镜像加速源设置
镜像源设置
文件位置: /etc/docker/daemon.json
, 若文件不存在则手动创建一个
内容如下:
{
"builder": {
"gc": {
"defaultKeepStorage": "20GB",
"enabled": true
}
},
"experimental": false,
"registry-mirrors": [
"https://mirror.ccs.tencentyun.com",
"https://z381r7vm.mirror.aliyuncs.com",
"http://hub-mirror.c.163.com",
"https://docker.mirrors.ustc.edu.cn",
"https://registry.docker-cn.com"
]
}