Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Artifact Registry: immutable tags

I'm trying to understand how to manage images in a docker repository that has immutable tags enabled.  You can't delete them and you can't untag them, so what is the approach to removing obsolete versions? Do cleanup policies function in this situation?

Thanks!

Solved Solved
0 2 896
1 ACCEPTED SOLUTION

Hi @Mark_Olark,

As of now, cleanup policies don't work with immutable image tags. If a repository has immutable tags enabled, tagged artifacts can't be deleted. However, there is already a filed feature request to allow the cleanup policies and immutable tags feature work. Please be informed that I can’t provide a timeline as to when this will be implemented, but, you can make a follow up on the request for them to expedite.

Meanwhile, have you tried to temporarily disable the immutability for the repository and then delete the obsolete versions?

Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.

View solution in original post

2 REPLIES 2

Hi @Mark_Olark,

As of now, cleanup policies don't work with immutable image tags. If a repository has immutable tags enabled, tagged artifacts can't be deleted. However, there is already a filed feature request to allow the cleanup policies and immutable tags feature work. Please be informed that I can’t provide a timeline as to when this will be implemented, but, you can make a follow up on the request for them to expedite.

Meanwhile, have you tried to temporarily disable the immutability for the repository and then delete the obsolete versions?

Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.

Thanks, ronnelg, really appreciate the clarification.