我可以从 Google Cloud Storage 工件存储桶中删除容器映像吗? [英] Can I delete container images from Google Cloud Storage artifacts bucket?

查看:22
本文介绍了我可以从 Google Cloud Storage 工件存储桶中删除容器映像吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个连接到 Google Cloud Storage 的 Google App Engine 应用.

I have a Google App Engine app, which connects to Google Cloud Storage.

我注意到存储的数据量高得不合理(4.01 GB,本来应该是 100MB 左右).

I noticed that the amount of data stored was unreasonably high (4.01 GB, when it should be 100MB or so).

所以,我查看了每个存储桶的存储量,发现有一个名为 us.artificats. 的自动创建存储桶占用了大部分空间.

So, I looked at how much each bucket was storing, and I found that there was an automatically created bucket called us.artificats. that was taking up most of the space.

我看了看里面,只有一个文件夹:containers/images/.

I looked inside, and all it has is one folder: containers/images/.

根据我的谷歌搜索,这些图片似乎来自 Google Cloud Build.

From what I've Googled, it seems like these images come from Google Cloud Build.

我的问题是,我可以在不影响整个应用程序的情况下删除它们吗?

My question is, can I delete them without compromising my entire application?

推荐答案

对于那些后来看到这个的人,我最终删除了文件夹,一切都很好.

For those of you seeing this later on, I ended up deleting the folder, and everything was fine.

当我再次运行 Google Cloud Build 时,它会将项目重新添加到存储桶中,我必须稍后将其删除.

When I ran Google Cloud Build again, it added items back into the bucket, which I had to delete later on.

正如@HarshitG 提到的,这可以通过云存储中的删除规则设置为自动发生.至于我自己,我在部署 GitHub 操作中添加了一个删除步骤.

As @HarshitG mentioned, this can be set up to happen automatically via deletion rules in cloud storage. As for myself, I added a deletion step to my deployment GitHub action.

这篇关于我可以从 Google Cloud Storage 工件存储桶中删除容器映像吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆