2 Antworten
- Neueste
- Die meisten Stimmen
- Die meisten Kommentare
2
Hi,
Based on https://repost.aws/questions/QUN4A5R47CTcGifcCr6mWCnQ/ecr-image-tagging, you want to make your repository globally immutable by using
aws ecr create-repository --repository-name name --image-tag-mutability IMMUTABLE --region us-east-2
Then, just before you add a new image, you make the last image mutable via
aws ecr put-image-tag-mutability --repository-name name --image-tag-mutability MUTABLE --region us-east-2
Then your remove the tag 'latest'
on it and switch it back to IMMUTABLE. Then, you add your latest version of the image with all tags you want + 'latest'
Best,
Didier
1
- ECR tagging can be mutable/immutable. The best practice is to use immutable tagging.
- You need to explicitly tag it with "latest" tag.
beantwortet vor 9 Monaten
Relevanter Inhalt
- AWS OFFICIALAktualisiert vor 2 Jahren
- AWS OFFICIALAktualisiert vor 2 Jahren
- AWS OFFICIALAktualisiert vor 2 Jahren
Per this,
latest
is not really needed : https://cloud.ibm.com/docs/Registry?topic=Registry-troubleshoot-docker-latest#:~:text=The%20latest%20tag%20is%20applied,a%20tag%20value%20explicitly%20set.My question is in context of EKS being able to pull the
latest
(most recently pushed) image.