Docker安装Mysql镜像报错(Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting fo)

错误信息:Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

  • 原因是Docker默认镜像源是国外的,修改镜像源为国内的;
    解决办法:
  1. vim /etc/docker/daemon.json
  2. 新增 {“registry-mirrors”:[“http://hub-mirror.c.163.com”] }
    Docker安装Mysql镜像报错(Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting fo)
  3. 重启Docker服务,systemctl restart docker.service

问题解决,成功拉去到资源!

上一篇:ubuntu无法设置为中文怎么办?(适用于ubuntu14.04/16.04)


下一篇:614MySql添加索引导致线上事故分析-《Waiting for table metadata lock》