Bootstrap

2025最新 Docker 国内可用镜像源仓库地址(01月02日更新)

1. 添加docker镜像地址

使用编辑器打开配置文件 /etc/docker/daemon.json(如果没有该文件,可以新建一个)

2. vi daemon.json, 写入以下内容

{
  "builder": {
    "gc": {
      "defaultKeepStorage": "20GB",
      "enabled": true
    }
  },
  "experimental": false,
  "registry-mirrors": [
    "https://docker.hpcloud.cloud",
    "https://docker.m.daocloud.io",
    "https://docker.unsee.tech",
    "https://docker.1panel.live",
    "http://mirrors.ustc.edu.cn",
    "https://docker.chenby.cn",
    "http://mirror.azure.cn",
    "https://dockerpull.org",
    "https://dockerhub.icu",
    "https://hub.rat.dev",
    "https://proxy.1panel.live",
    "https://docker.1panel.top",
    "https://docker.m.daocloud.io",
    "https://docker.1ms.run",
    "https://docker.ketches.cn"
  ]
}

3. 重启docker服务

sudo systemctl daemon-reload
sudo systemctl restart docker

4. 检查是否成功

拉取下flink镜像试试,docker pull flink

[root@localhost docker]# docker pull flink
Using default tag: latest
latest: Pulling from library/flink
6414378b6477: Pull complete
2c9f253e30bf: Pull complete
65c8233e39bf: Pull complete
b59d22db63f3: Pull complete
b80a9c727cee: Pull complete
da3337ead35a: Pull complete
53e543b721f9: Pull complete
ecebf073acfb: Pull complete
21be4ec89742: Pull complete
f71629a01e27: Pull complete
cc4f5f48c9f1: Pull complete
Digest: sha256:2ec7f6d5591444334f63b66ddd49c7ae02551cb0a27c0988790fa43caa49716f
Status: Downloaded newer image for flink:latest
docker.io/library/flink:latest
[root@localhost docker]#

搞定,奥利给~
参看了这篇文章:https://zhuanlan.zhihu.com/p/15994162505

;