gcloud ping尝试失败,执行“docker push” [英] gcloud ping attempt failure with performing a 'docker push'

查看:390
本文介绍了gcloud ping尝试失败,执行“docker push”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我运行以下命令

gcloud preview docker push gcr.io/project-name/an-image

我收到以下错误。有谁知道我如何解决这个或什么意思?所有我正在做的是遵循标准的例子,只是为了学习如何工作...谢谢:)

And I got the following error. Does anyone know how I fix that or what it means? All I was doing was following the standard examples just to learn how it works... Thanks :)

FATA [0010]错误:v1 ping尝试失败,错误:获取 https://gcr.io/v1/_ping :拨打tcp:i / o超时。如果此私有注册表仅支持具有未知CA证书的HTTP或HTTPS,请向守护程序的参数添加 - insecure-registry gcr.io 。在HTTPS的情况下,如果您有权访问注册表的CA证书,则不需要该标志;只需将CA证书放在/etc/docker/certs.d/gcr.io/ca.crt

FATA[0010] Error: v1 ping attempt failed with error: Get https://gcr.io/v1/_ping: dial tcp: i/o timeout. If this private registry supports only HTTP or HTTPS with an unknown CA certificate, please add --insecure-registry gcr.io to the daemon's arguments. In the case of HTTPS, if you have access to the registry's CA certificate, no need for the flag; simply place the CA certificate at /etc/docker/certs.d/gcr.io/ca.crt

错误:(gcloud.preview.docker)Docker命令没有成功运行
试图运行:'docker push gcr.io/project-name/an-image'
退出代码:1

ERROR: (gcloud.preview.docker) A Docker command did not run successfully. Tried to run: 'docker push gcr.io/project-name/an-image' Exit code: 1

推荐答案

错误意味着docker在连接到 https://gcr.io/v1/_ping时遇到问题 url,并且tcp连接超时。

The error means that docker had problem connecting to the https://gcr.io/v1/_ping url, and the tcp connection timed out.

最可能的原因是您的ISP和Google之间的连接有问题。尝试运行curl https://gcr.io/v1/_ping 几次,看看是否它正确连接(它应该返回true作为请求的正文)。如果没有,请尝试ping gcr.io以查看是否可以到达服务器。

The most likely cause is a fluke in the connection between your ISP and Google. Try running "curl https://gcr.io/v1/_ping" a couple of times and see if it connects correctly (it should return "true" as the body of the request). If not, try pinging gcr.io to see if you can reach the server at all.

这篇关于gcloud ping尝试失败,执行“docker push”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆