2016-11-21 67 views
1

我试图将图像上传到Google Container Registry,但它返回一些错误,我不知道如何排除故障。在Mac上将Docker图像推送到Google Container注册失败

$> gcloud docker -- push asia.gcr.io/dtapi-1314/web 
The push refers to a repository [asia.gcr.io/dtapi-1314/web] 
53ccd4e59f47: Retrying in 1 second 
32ca8635750d: Retrying in 1 second 
e5363ba7dd4d: Retrying in 1 second 
d575d439624a: Retrying in 1 second 
5c1cba20b78d: Retrying in 1 second 
7198e99c156d: Waiting 
6ca37046de16: Waiting 
b8f2f07b3eab: Waiting 
16681562a534: Waiting 
92ea1d98cb79: Waiting 
97ca462ad9ee: Waiting 
unable to decode token response: read tcp 10.0.2.10:54718->74.125.23.82:443: read: connection reset by peer

我检查了我的Mac上的权限。

$> gsutil acl get gs://asia.artifacts.dtapi-1314.appspot.com

它返回了正确权限的列表。

我试过在云端控制台上进行测试,它工作正常。

有没有人有线索? 非常感谢,如果有人可以帮忙。 :)


其他故障排除

gcloud auth login
gcloud docker -- login -p $(gcloud auth print-access-token) -u _token https://asia.gcr.io 
gsutil acl get gs://asia.artifacts.{%PROJECT_ID}.appspot.com 

添加不安全 - 注册表dockerd启动命令。

--insecure-registry asia.gcr.io 

可能是同一原因

gcloud docker -- pull google/python

错误是

Error response from daemon: Get https://registry-1.docker.io/v2/google/python/manifests/latest: read tcp 10.0.2.15:37762->52.45.33.149:443: read: connection reset by peer

搬运工服务器日志

DEBU[0499] Increasing token expiration to: 60 seconds 
ERRO[0500] Error trying v2 registry: Get https://registry-1.docker.io/....../python/manifests/latest: read tcp 10.0.2.15:37762->52.45.33.149:443: read: connection reset by peer 
ERRO[0500] Attempting next endpoint for pull after error: Get https://registry-1.docker.io/....../python/manifests/latest: read tcp 10.0.2.15:37762->52.45.33.149:443: read: connection reset by peer 
DEBU[0500] Skipping v1 endpoint https://index.docker.io because v2 registry was detected 
ERRO[0500] Handler for POST /v1.24/images/create returned error: Get https://registry-1.docker.io/....../python/manifests/latest: read tcp 10.0.2.15:37762->52.45.33.149:443: read: connection reset by peer

环境

  • 的MacOS:10.11.6
  • 多克尔工具箱(上MAC)
  • 多克尔1.12.3(GIT提交:6b644ec,内置:星期三10月26日23时26分11秒2016)

回答

0

似乎是一个权限问题。尝试运行
gcloud auth login

我记得遇到类似的问题,这有帮助。

+0

感谢您的回复,罗伯特。 :) 我尝试'gcloud auth login'后,结果仍然是一样的。 我试过'gsutil acl get gs://asia.artifacts。{%PROJECT_ID} .appspot.com'。它返回正确的权限而不是拒绝访问。只是想知道是否有其他工具或日志来检查? –

1

根本原因是愚蠢的,但我想更新这个问题的任何人谁看到这个问题。当我将电脑连接到公司的WIFI时,我发现了这一点。然后它会工作(还有一些重置)。我公司的有线网络对Google Container Registry神秘破碎。有线网络适用于我们使用的所有其他服务(Google/youtube /移动服务),但已破坏到Google Container Registry。

相关问题