docker 添加国内源

创建或修改 /etc/docker/daemon.json 文件

# sudo vi /etc/docker/daemon.json
{
    "registry-mirrors": 
    [
          "https://registry.docker-cn.com",
          "https://hub-mirror.c.163.com"      
    ]
}
sudo systemctl restart docker.service
posted @ 2020-09-21 07:42  sarace  阅读(896)  评论(0编辑  收藏  举报