1、编辑Docker配置文件

nano /etc/docker/daemon.json

2、加入以下镜像源

https://registry.docker-cn.com
https://docker.mirrors.ustc.edu.cn
https://hub-mirror.c.163.com
http://f1361db2.m.daocloud.io

具体配置

{
  "registry-mirrors": ["https://registry.docker-cn.com","https://docker.mirrors.ustc.edu.cn","https://hub-mirror.c.163.com","http://f1361db2.m.daocloud.io"]
}

3、效果如下图所示
image.png
4、重启Docker

systemctl daemon-reload
systemctl restart docker
Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐