docker拉取镜像超时

报错如下:error pulling image configuration: download failed after attempts=6…
docker拉取镜像超时_第1张图片
原因:拉取镜像超时
解决:改为国内镜像
docker拉取镜像超时_第2张图片

{
  "builder": {
    "gc": {
      "defaultKeepStorage": "20GB",
      "enabled": true
    }
  },
  "experimental": true,
  "features": {
    "buildkit": true
  },
  "registry-mirrors": [
    "http://hub-mirror.c.163.com","https://docker.mirrors.ustc.edu.cn","https://registry.docker-cn.com"
  ]
}

检查配置:docker info
docker拉取镜像超时_第3张图片
docker拉取镜像超时_第4张图片

你可能感兴趣的:(docker,运维)