本文介绍了Gcloud和Docker:由于空间不足,推送图像失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将2GB Docker图片上传到Google Container注册表:

I am trying to upload a 2GB Docker image to the Google Container registry:

gcloud docker push eu.gcr.io/project-id/image

我收到以下错误:

Failed to generate layer archive: write /mnt/sda1/var/lib/docker/graph/_tmp/be959f8b6f706fb75cdc24b/28450517: no space left on device '''

我遇到的另一个问题是关于失败的推送。似乎上传没有工作,然后我不能再推一次:

Another problem I encountered is a about a failing push. It seems the upload has not worked and then I cannot push it again:

Error response from daemon: push eu.gcr.io/project-id/image is already in progress

顺便说一句,列出所有图片的选项?

By the way is there an option to list all images?

推荐答案

该错误正在谈论本地设备上的空间。您应该清除您在本地不再需要的任何旧图像。

That error is talking about space on your local device. You should clear out any old images you have locally that you no longer need.

您可以在Google Developers Console中看到您的图像列表:

You can see your list of images in the Google Developers Console: https://console.developers.google.com/

查找您的项目,然后选择计算>容器引擎>容器注册表。截至今天,没有办法从CLI列出您的图像。

Find your project, then select "Compute > Container Engine > Container Registry". As of today, there is no way to list your images from the CLI.

希望有帮助,也可以随时通过gcr-contact @ google与我们联系。 com

Hope that helps, also feel free to reach out to us at gcr-contact@google.com

这篇关于Gcloud和Docker:由于空间不足,推送图像失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-07 09:09