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,517 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,350 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,060 points
1,840 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,617 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,460 points
1,016 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,955 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
4,034 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,350 points
1,921 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,350 points
5,806 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