【发布时间】:2016-11-21 12:11:19
【问题描述】:
我试图将我的图像上传到 Google Container Registry,但它返回了一些错误,我不知道如何进行故障排除。
$> 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
将 insecure-registry 添加到 dockerd 启动命令。
--insecure-registry asia.gcr.io
可能是同一个原因
gcloud docker -- pull google/python
错误是
来自守护进程的错误响应:获取 https://registry-1.docker.io/v2/google/python/manifests/latest:读取 tcp 10.0.2.15:37762->52.45.33.149:443:读取:连接重置按同行
泊坞窗服务器日志
DEBU[0499] 将令牌过期时间增加到:60 秒 错误 [0500] 尝试 v2 注册表时出错:获取 https://registry-1.docker.io/....../python/manifests/latest:读取 tcp 10.0.2.15:37762->52.45.33.149:443:读取:对等方重置连接 错误 [0500] 错误后尝试下一个端点进行拉取:获取 https://registry-1.docker.io/....../python/manifests/latest:读取 tcp 10.0.2.15:37762->52.45.33.149 :443: 读取:对等方重置连接 DEBU[0500] 跳过 v1 端点 https://index.docker.io 因为检测到 v2 注册表 错误 [0500] POST /v1.24/images/create 的处理程序返回错误:获取 https://registry-1.docker.io/....../python/manifests/latest:读取 tcp 10.0.2.15: 37762->52.45.33.149:443:读取:对等方重置连接
环境
- MacOS:10.11.6
- Docker 工具箱(在 MAC 上)
- Docker 1.12.3(Git 提交:6b644ec,内置:2016 年 10 月 26 日星期三 23:26:11)
【问题讨论】:
标签: docker gcloud google-kubernetes-engine