gcloud docker推送失败“无法ping通registry端点https://gcr.io/v0/”

我试图设置Google容器引擎,我试图推动我的第一个Docker容器到GCE仓库,但是我得到以下错误:

oash-3.2$ gcloud docker push gcr.io/prlr-dev-01/centos-7-systemd --verbosity inf INFO: Refreshing access_token INFO: Refreshing access_token INFO: Refreshing access_token INFO: Refreshing access_token INFO: Refreshing access_token INFO: Refreshing access_token INFO: Refreshing access_token The push refers to a repository [gcr.io/prlr-dev-01/centos-7-systemd] unable to ping registry endpoint https://gcr.io/v0/ v2 ping attempt failed with error: Get https://gcr.io/v2/: dial tcp: lookup gcr.io on 10.0.2.3:53: read udp 10.0.2.15:56392->10.0.2.3:53: i/o timeout v1 ping attempt failed with error: Get https://gcr.io/v1/_ping: dial tcp: lookup gcr.io on 10.0.2.3:53: read udp 10.0.2.15:35899->10.0.2.3:53: i/o timeout bash-3.2$ 

我的Docker版本是:

 bash-3.2$ docker --version Docker version 1.10.2, build c3959b1 bash-3.2$ 

而我的“curl平”工作得很好:

 bash-3.2$ curl https://gcr.io/v1/_ping -n truebash-3.2$ 

我不知道10.0.2.15和10.0.2.3来自哪里,因为我在办公室WiFi连接上使用192.168.1.0/24段,而在GCE上使用10.0.0.0/24。

你有什么线索可能是错的?

根据其他用户的意见,重新启动docker已经解决了这个问题。 GCR故障排除指南还提供了有用的debugging信息。