DockerHub镜像无法下载的解决方案

DockerHub镜像无法下载的解决方案



hub.docker.com和国内几家Docker Hub镜像服务平台陆续下架,停止服务。 给使用的同学造成非常大的困扰。 汇总了几种目前有效的解决方案,希望能帮助到大家,2024年8月30测试可用。

Docker镜像加速站设置(linux)




sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<EOF
{
    "registry-mirrors": [
        "https://hub.uuuadc.top",
        "https://docker.anyhub.us.kg",
        "https://dockerhub.jobcher.com",
        "https://dockerhub.icu",
        "https://docker.ckyl.me",
        "https://docker.awsl9527.cn"
    ]
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker


windows 中docker设置,之后重启docker:


attachments-2024-08-3Im0BWDs66d186b57a9d0.png


代码如下:


{
  "registry-mirrors": [
    "https://hub.uuuadc.top",
        "https://docker.anyhub.us.kg",
        "https://dockerhub.jobcher.com",
        "https://dockerhub.icu",
        "https://docker.ckyl.me",
        "https://docker.awsl9527.cn"
],
  "insecure-registries": [],
  "debug": true,
  "experimental": false
}


尝试下载:attachments-2024-08-XMCJBlKj66d1895fe7d47.png

  • 发表于 2024-08-30 16:31
  • 阅读 ( 238 )
  • 分类:linux

0 条评论

请先 登录 后评论
omicsgene
omicsgene

生物信息

691 篇文章

作家榜 »

  1. omicsgene 691 文章
  2. 安生水 340 文章
  3. Daitoue 167 文章
  4. 生物女学霸 120 文章
  5. 红橙子 78 文章
  6. xun 76 文章
  7. rzx 74 文章
  8. CORNERSTONE 72 文章