docker pull 报error parsing HTTP 408 response body

  • 1. 配置国内源

    vim /etc/docker/daemon.json

    配置 `registry-mirrors`

    {
      "data-root": "/home/docker_root",
      "registry-mirrors": [
        "https://hub-mirror.c.163.com",
        "https://registry.aliyuncs.com",
        "https://mirror.baidubce.com",
        "https://registry.docker-cn.com",
        "https://reg-mirror.qiniu.com",
        "https://dockerhub.azk8s.cn",
        "https://docker.mirrors.ustc.edu.cn"
      ]
    }
  • 2. 临时修改网卡MTU

    查看网卡

    ifconfig

    临时修改MTU,为900

    ifconfig eth0 mtu 900