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