You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How to build a public registry in AWS ECR (Elastic Container Registry)?
# Set up AWS CLI
aws configure
# Create a Public ECR Repository
aws ecr-public create-repository --repository-name redis --region <region># Authenticate Docker to ECR:# public repo URI = public.ecr.aws/xxxx
aws ecr-public get-login-password --region <region>| docker login --username AWS --password-stdin <public repo URI># Pull image from DockerHub# Need to specify platform to avoid error because docker will pull image version to match your current running OS
docker pull --platform=linux/amd64/v4 redis:latest
# Tag image
docker tag redis:latest public.ecr.aws/<account_id>/redis:latest
# Push image to ECR
docker push public.ecr.aws/<account_id>/redis:latest
# Verify image exists in ECR
aws ecr-public describe-images --repository-name redis --region <region>
The text was updated successfully, but these errors were encountered:
How to build a public registry in AWS ECR (Elastic Container Registry)?
The text was updated successfully, but these errors were encountered: