1、在/etc/docker/daemon.json文件中添加如下配置:

{
  "registry-mirrors": ["https://registry.docker-cn.com"]
}

2、重启docker生效:service docker restart



登陆发表评论