{
"registry-mirrors": [
"https://docker.1panelproxy.com",
"https://2m11665s.mirror.aliyuncs.com",
"https://registry.docker-cn.com",
"https://dockerhub.azk8s.cn",
"https://docker.mirrors.ustc.edu.cn",
"http://hub-mirror.c.163.com",
"https://k8s.gcr.io",
"https://github-releases.githubusercontent.com",
"https://ustc-edu-cn.mirror.aliyuncs.com"
],
"insecure-registries": [
"registry.me:5000",
"http://docker.mirrors.ustc.edu.cn",
"https://k8s.gcr.io",
"https://github-releases.githubusercontent.com",
"https://registry-1.docker.io",
"decs.com"
],
"exec-opts": [
"native.cgroupdriver=systemd"
]
}
{
"registry-mirrors": [
"https://docker.1ms.run", // 毫秒镜像(推荐,速度最快)
"https://dockerproxy.com", // 稳定代理,兼容性好
"https://hub.rat.dev" // 备用源,偶尔第一个抽风时用
]
}
-
编辑 Docker 配置文件: vim /etc/docker/daemon.json -
替换成上面的配置 -
重启 Docker: systemctl daemon-reload && systemctl restart docker -
测试: docker pull hello-world能秒拉就说明成了
往期推荐
Redis官方发布高颜值可视化工具,功能更是强的离谱!
五大Java对象映射工具终极对决:从Spring、Apache到MapStruct的性能深度评测
IDEA 实战:查看 Maven 依赖树与解决 Jar 包冲突
工作中最常用的6种API网关
SpringBoot中常用的工具类库及其使用示例
再见Navicat、XShell!一款高颜值的数据库、SSH、Docker管理工具!

