Is there a way to edit AWS ECR image tags or otherwise manage them?

0

I want to set tags in case I use an older version of the AWS ECR image.

If you push with the same tag, it becomes <untagged>.

So I searched and there was a method of retagging in the docs, but it was a method of attaching multiple tags. https://docs.aws.amazon.com/AmazonECR/latest/userguide/image-retag.html

Is there a way to directly edit or is there another tag management method?

joker
gefragt vor einem Jahr359 Aufrufe
1 Antwort
1
Akzeptierte Antwort

Generally I would suggest you to configure your repository to be immutable to prevent image tags from being overwritten if you need to use older version of image. Immutable tags gives you a way to easily and uniquely identify an image.

In your case, if your image tagged like v1.0.1, v1.0.2, v1.0.3 etc.. You can use the old version tag directly for rollback (v1.0.1). This blog by Marius discussed best practice about how we should tag the image.

You can edit ECR Image tag mutability here: https://docs.aws.amazon.com/AmazonECR/latest/userguide/image-tag-mutability.html

Alick
beantwortet vor einem Jahr
profile picture
EXPERTE
überprüft vor einem Monat

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen