Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
问题是 ECR 如何计算具有相同标签的图像。例如,如果我推送 1 个时间标签“base-old”,然后推送 10 次带有标签“base”标签的图像,并且我有一个生命周期规则,如果删除“base-old”或不是?谢谢!
如果您推送多个具有相同标签的图像,例如STG,每个新图像都会覆盖旧图像的现有标签。因此,每次,您将只有一张带有STG标签的图像。
STG
现在,如果您推送一个带有标签的图像base-old,然后开始推送多个base-1, base-2, ....,base-n您实际上将使用带有前缀的生命周期策略base。相反,如果您每次推送具有相同标签库的图像,您将无法达到实际使用生命周期策略的图像计数。
base-old
base-1
base-2
base-n
base