How do you push an image to Amazon ECR?
IntermediateConceptRuntime Stack, OCI & Registries
Answer
aws ecr get-login-password --region ap-south-1 | \
docker login --username AWS --password-stdin 123456789012.dkr.ecr.ap-south-1.amazonaws.com
docker tag app:1.0 123456789012.dkr.ecr.ap-south-1.amazonaws.com/app:1.0
docker push 123456789012.dkr.ecr.ap-south-1.amazonaws.com/app:1.0
The token lasts 12 hours. The repository must exist first (aws ecr create-repository).
More on Runtime Stack, OCI & Registries
What is the architecture of Docker Engine?IntermediateWhat is the OCI and what specs does it define?IntermediateWhat does `runc` do?IntermediateWhat is containerd and how does it relate to Docker and Kubernetes?IntermediateWhat are `ctr`, `crictl` and `nerdctl`?IntermediateWhat is CRI-O?Intermediate