【发布时间】:2016-10-01 13:40:21
【问题描述】:
我已经在 Google Cloud Shell 中构建了一个 docker 映像,现在想将其推送到 Google Container Registry (GCR) 中。我收到以下错误消息:
$ sudo docker push eu.gcr.io/<project>/<image>
The push refers to a repository [eu.gcr.io/<project>/<image>] (len: 0)
Repository does not exist: eu.gcr.io/<project>/<image>
然而,我可以在 Google Cloud Console 中看到存储库及其内容(即在与 Google Cloud Shell 相同的浏览器窗口中),这在以前也有效。我之前也执行过gcloud docker 进行身份验证。
可能出了什么问题,我怎样才能成功地将 Docker 映像推送到 GCR 中?
【问题讨论】:
-
那是一个很棒的头像@Drux
-
@the0ther “我喜欢饼干和好答案!Yumm。”
标签: docker google-container-registry