docker login 报错了...

简单记录一下 docker login 时候有问题了,以下是我 Docker Engine 的 version 信息。

Docker 

Client: Docker Engine - Community
 Version:           18.09.3
 API version:       1.39
 Go version:        go1.10.8
 Git commit:        774a1f4
 Built:             Thu Feb 28 06:32:50 2019
 OS/Arch:           darwin/amd64
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          18.09.3
  API version:      1.39 (minimum version 1.12)
  Go version:       go1.10.8
  Git commit:       774a1f4
  Built:            Thu Feb 28 06:40:58 2019
  OS/Arch:          linux/amd64
  Experimental:     true

在没有 VPN 和公司网络的情况下,也就是移动宽带之下,竟然…

Error response from daemon: Get https://registry-1.docker.io/v2/: Get https://auth.docker.io/token?account=你的用户名&client_id=docker&offline_token=true&service=registry.docker.io: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers) (Client.Timeout exceeded while awaiting headers)

就是报错了,查了一下 Docker 社区,竟然发现…

https://forums.docker.com/t/error-response-from-daemon-get-https-registry-1-docker-io-v2/23741/4

好,按照用户评论说的,登录的时候用用户名,不要用 email 哦…

亲测有效,猜测是 login 的逻辑问题,所以碰到这个问题,有两个方向。

  1. proxy 或者墙
  2. 登录名的问题

END.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值