docker push 被拒绝 : Unable to determine the upload's size

标签 docker google-cloud-repository

我在 google cloud 上创建了应用程序镜像,并在尝试通过 google cloud shell 推送时,收到以下错误:

08db9ff34fc6: Pushing [==================================================>] 73.38 MB
5313937c4c49: Pushing [==========================================>        ] 62.36 MB/73.37 MB
162f935b1198: Pushing [==========================>                        ] 84.09 MB/155.9 MB
dcf909146faa: Pushing [==================================================>] 6.787 MB
23b9c7b43573: Pushing [==================================================>]  4.23 MB
**denied: Unable to determine the upload's size.**

我在寻找解决方案时很努力,但没有找到一个。请帮忙。

最佳答案

有同样的问题。您可以尝试提取您在那里配置的另一个图像:

docker pull gcr.io/...

对我来说,它最初失败了 AccessDenied .

解决方案:

为了解决这个问题,我进入了谷歌云 UI 界面中的存储浏览器:

https://console.cloud.google.com/storage/browser

转至 artifacts.<project-name>.appspot.com存储桶并给自己存储访问权限。然后它起作用了

关于docker push 被拒绝 : Unable to determine the upload's size,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42778519/

相关文章:

python - Docker-Compose 配置容器时区

git - 如何同时使用 Github 和 Firebase?

git - 使用 git pull 时身份验证失败

python-3.x - 从 Cloud Functions 中的父目录或同级目录导入模块?

python - 运行 pip 安装 : There was a problem confirming the ssl certificate: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed

node.js - 将变量传递给 npm 命令字符串(不是 npm 命令运行的脚本)

google-cloud-platform - 如何部署使用google cloud build和Source Repository新推送的多个云函数?

google-cloud-platform - git push 后未刷新 Google 函数源

docker - docker-compose和ansible中的“mount if not exists”子句

docker - Rocketchat 安装向导挂起