跳转至

修改docker国内镜像源

Bash
sudo tee /etc/docker/daemon.json > /dev/null <<EOF
{
  "registry-mirrors": [
    "https://docker.1ms.run",
    "https://docker.xuanyuan.me",
    "https://docker.m.daocloud.io",
    "https://docker.1panel.live",
    "https://hub.rat.dev"
  ],
  "insecure-registries": ["hub.local.cn"]
}
EOF

sudo systemctl daemon-reload 
sudo systemctl restart docker

第10行添加自建仓库地址

测试

docker run hello-world