我可以从 Google Cloud Storage artifacts 存储桶中删除容器映像吗? [英] Can I delete container images from Google Cloud Storage artifacts bucket?
问题描述
我有一个连接到 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 搜索来看,这些图像似乎来自 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 artifacts 存储桶中删除容器映像吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!