$ docker pull php:7.1-fpm-alpine
Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

见到这段烦人的超时提示,就知道是网络问题了,解决办法是添加国内镜像

https://docker.mirrors.ustc.edu.cn
https://hub-mirror.c.163.com
http://f1361db2.m.daocloud.io

镜像可以添加多个

设置步骤:
Docker for Windows/Mac

Setting/Preference -> Daemon -> Registry mirrors

相关文章:

  • 2021-06-06
  • 2021-08-10
  • 2021-08-01
  • 2021-07-24
  • 2021-10-05
  • 2021-06-18
  • 2021-05-26
  • 2021-12-08
猜你喜欢
  • 2021-07-02
  • 2021-05-22
  • 2021-08-20
  • 2021-09-14
  • 2021-08-26
  • 2021-04-08
  • 2021-04-03
相关资源
相似解决方案