我試圖將圖像上傳到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'。它返回正確的權限而不是拒絕訪問。只是想知道是否有其他工具或日誌來檢查? –