【docker】一些国内好用的镜像源
一、问题
拉取一个python3.10-slim镜像报错ERROR [internal] load metadata for docker.io/v1/xxx“的问题
二、编辑镜像源
vm /etc/docker/daemon.json
添加registry-mirrors配置
{
"registry-mirrors": [
"https://mirror.aliyuncs.com/",
"https://dockerproxy.com/",
"https://mirror.baidubce.com/",
"https://docker.nju.edu.cn/",
"https://docker.mirrors.sjtug.sjtu.edu.cn/",
"https://docker.mirrors.ustc.edu.cn/",
"https://jq794zz5.mirror.aliyuncs.com"
]
}
三、重启docker
# 重新加载配置 systemctl daemon-reload # 重启docker systemctl restart docker # 查看配置是否生效 docker info
四、修改DNS(可选)
vm /etc/resolv.conf nameserver 114.114.114.114 nameserver 8.8.8.8
参考链接:
https://blog.csdn.net/m0_71816999/article/details/143234503