Harbor: 强烈建议增加定时删除清理镜像策略

Created on 25 Nov 2016  ·  14Comments  ·  Source: goharbor/harbor

强烈建议增加定时删除清理镜像策略

staled

Most helpful comment

想提个小的需求 应该也会有很多人有
随着我们仓库的越来越大 存储的镜像也越来越多 但是有很多镜像我们一段时间后就不用了
所以 是否可以新增一个镜像定期删除策略 由用户自定义保留多久以前的镜像
建议策略 粒度越小 优先级越高
比如项目定义保留30天以内的镜像
某个仓库保留60天 就保留60天

这是另一个人的提问,这个也是我们想要的

All 14 comments

Deleting images and recycling free space requires shutting down the registry, this cannot be scheduled and completed automatically.

想提个小的需求 应该也会有很多人有
随着我们仓库的越来越大 存储的镜像也越来越多 但是有很多镜像我们一段时间后就不用了
所以 是否可以新增一个镜像定期删除策略 由用户自定义保留多久以前的镜像
建议策略 粒度越小 优先级越高
比如项目定义保留30天以内的镜像
某个仓库保留60天 就保留60天

这是另一个人的提问,这个也是我们想要的

Thanks for your suggestion, we will consider this in later release.

However, since the recycling image space requires shutting down the registry, the user must know there will be down time during the scheduled recycling of images. Please refer to the user guide about the Gargage collection for more explanation.

@hainingzhang why register should be shutted down when deleting images?

Deleting an image can be done in UI, but the recycle of free space needs to shutdown the registry. Please refer to our user guide: https://github.com/vmware/harbor/blob/master/docs/user_guide.md

@nuaays

自动清理这个支持!!!

This is so-called "Retention Policy".

We're looking into something like this as well. If this isn't something harbor supports (or isn't going to support) we might have to consider another registry or weigh that against developing our own solution for retention.

what status now?

up up

up

针对这个问题我专门写了一个项目,并基于该工具进行了处理;
若感兴趣,详见《关于清理策略的讨论

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Let's track this requirement in #5882

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pingcrosby picture pingcrosby  ·  3Comments

abououdine picture abououdine  ·  3Comments

Poil picture Poil  ·  3Comments

mramanathan picture mramanathan  ·  3Comments

a-kinder picture a-kinder  ·  3Comments