Docker修改国内源

1、打开daemon.json

vim /etc/docker/daemon.json

{
  "registry-mirrors": [
    "https://hub-mirror.c.163.com",
    "https://mirror.baidubce.com"
  ]
}

2、重启docker服务

sudo systemctl daemon-reload 
sudo systemctl restart docker

3、验证

sudo docker info

你可能感兴趣的:(Docker,docker,容器,运维,源)