Skip to content

Docker push to ECR time out

0

I am having the following error trying to upload a docker image:

net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

What could happen?

asked 2 years ago1.4K views
2 Answers
0

Hello,

Did you authenticate to the Amazon ECR registry before push the image to ECR repository?

aws ecr get-login-password --region region | docker login --username AWS --password-stdin aws_account_id.dkr.ecr.region.amazonaws.com

Pushing a Docker image to an Amazon ECR private repository: https://docs.aws.amazon.com/AmazonECR/latest/userguide/docker-push-ecr-image.html

EXPERT
answered 2 years ago
0

Make sure your current user have correct policy AmazonEC2ContainerRegistryFullAccess.

And also make sure the name of your repository is the same name as your images

**********.dkr.ecr.us-east-1.amazonaws.com/your-image:latest

Your repo is your-image and your image's name must also be your-image

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.