docker修改镜像源
创建或修改 /etc/docker/daemon.json 文件,修改:
{ "registry-mirrors" : [ "https://registry.docker-cn.com", "http://hub-mirror.c.163.com", "https://docker.mirrors.ustc.edu.cn", "https://cr.console.aliyun.com", "https://mirror.ccs.tencentyun.com" ] }
重启docker服务使配置生效:
systemctl daemon-reload
systemctl restart docker.service
查看配置是否成功: