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,620 points
73 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
• 41,660 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
• 6,880 points
95 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,510 points
103 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,810 points
404 views
0 votes
1 answer

Error “unable to resolve host docker”

This error occurs because its not a ...READ MORE

answered Jul 10, 2018 in Docker by Kalgi
• 2,620 points
389 views
+13 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
181 views
0 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
• 41,660 points
191 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
• 41,660 points
387 views