1.打开docker的设置,点击Docker Engine
2.添加国内的镜像源,将下面的内容加进去
"registry-mirrors": [
"https://docker.mirrors.ustc.edu.cn",
"https://registry.docker-cn.com",
"http://hub-mirror.c.163.com",
"https://mirror.ccs.tencentyun.com"
]
3.重启docker