Docker unable to connect AWS EC2 cloud

0 votes

Hi I am able to deploy my spring boot application in my local docker container(1.11.2) in Windows-7.I.

I’m getting the following error

XXXX@XXXX MINGW64 ~

$ docker login -u AWS -p <accessKey>/<secretKey>

Uwg

Error response from daemon: Get https://registry-1.docker.io/v2/: unauthorized:

incorrect username or password

 XXXX@XXXX MINGW64 ~

$ gLBBgkqhkiG9w0BBwagggKyMIICrgIBADCCAqcGCSqGSIb3DQEHATAeBglghkgBZQMEAS4wEQQME8

Zei

bash: gLBBgkqhkiG9w0BBwagggKyMIICrgIBADCCAqcGCSqGSIb3DQEHATAeBglghkgBZQMEAS4wEQQ

ME8Zei: command not found

XXXX@XXXX MINGW64 ~

$ lJnpBND9CwzAgEQgIICeLBms72Gl3TeabEXDx+YkK9ZlbyGxPmsuVI/rq81tDeIC68e0Ma+ghg3Dt

Bus

bash: lJnpBND9CwzAgEQgIICeLBms72Gl3TeabEXDx+YkK9ZlbyGxPmsuVI/rq81tDeIC68e0Ma+ghg

3DtBus: No such file or directory

Jul 16, 2018 in Docker by Kalgi
• 2,680 points
1,290 views

1 answer to this question.

0 votes

Your command is not pointing to your ECR endpoint, but to DockerHub. Using Linux, normally I would simply run:

$ eval $(aws ecr get-login --region us-west-2)

This is possible because the get-login command is a wrapper that retrieves a new authorization token and formats the docker login command. You only need to execute the formatted command (in this case with eval)

But if you really want to run the docker login manually, you'll have to specify the authorization token and the endpoint of your repository:

$ docker login -u AWS -p <password> -e none https://<aws_account_id>.dkr.ecr.<region>.amazonaws.com

Where <password> is actually the authorization token

answered Jul 16, 2018 by Kalgi
• 52,360 points

Related Questions In Docker

0 votes
1 answer

swarm manager does not connect to nodes docker daemons on AWS

You first need to ssh into the ...READ MORE

answered Aug 24, 2018 in Docker by Nilesh
• 7,050 points
1,419 views
0 votes
1 answer

Docker is unable to connect to docker daemon

The problem here maybe is that you are not ...READ MORE

answered Sep 4, 2018 in Docker by Damon Salvatore
• 5,980 points
1,299 views
0 votes
1 answer

unable to connect to docker container created via docker toolbox from browser of windows 8

Hi@Abhishek, You can't connect the docker container from ...READ MORE

answered Nov 16, 2020 in Docker by MD
• 95,440 points
841 views
0 votes
1 answer

How to send docker using terraform to aws cloudwatch?

Check if you set all the permissions ...READ MORE

answered Jun 7, 2018 in Docker by DareDev
• 6,890 points
2,314 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
3,439 views
+2 votes
1 answer
0 votes
1 answer

Network timed out while trying to connect to https://index.docker.io

This happened because docker virtual machine gets ...READ MORE

answered Jul 27, 2018 in Docker by Kalgi
• 52,360 points
1,654 views
0 votes
1 answer

Docker error cannot delete docker container, conflict: unable to remove repository reference

First, remove the container names $ sudo docker ...READ MORE

answered Jul 31, 2018 in Docker by Kalgi
• 52,360 points
4,965 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP