Globe

Kratos
专注于用户阅读体验的响应式博客主题
  1. 首页
  2. docker
  3. 正文

docker 国内镜像加速

2025年4月13日 36点热度 0人点赞 0条评论

1.输入命令:

1
vim /etc/docker/daemon.json

2.添加下面的:

1
2
3
4
5
6
7
8
9
10
{
    "registry-mirrors": [
        "https://docker.anyhub.us.kg",
        "https://dockerhub.icu",
        "https://docker.awsl9527.cn",
        "https://docker.gh-proxy.com",
        "https://dockerpull.cn",
        "https://dockerpull.pw"
    ]
}

3.重启docker,注意由于走的是守护程序daemon,所以daemon进程也需要重启。

1
2
sudo systemctl daemon-reload
sudo systemctl restart docker

标签: 暂无
最后更新:2025年6月26日

free

这个人很懒,什么都没留下

点赞
< 上一篇
下一篇 >

文章评论

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
取消回复

COPYRIGHT © 2024 EverythingIThink. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang