2 Respostas
- Mais recentes
- Mais votos
- Mais comentários
1
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
0
- ECR tagging can be mutable/immutable. The best practice is to use immutable tagging.
- You need to explicitly tag it with "latest" tag.
respondido há 9 meses
Conteúdo relevante
- AWS OFICIALAtualizada há 2 anos
- AWS OFICIALAtualizada há 2 anos
- AWS OFICIALAtualizada há 2 anos
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.