简体   繁体   中英

Issue with Docker Login with AWS ECR

I'm following an aws tutorial to deploy a simple application using containers on aws. I'm trying to connect to AWS's ECR using docker and i get a warning message which doesnt allow me to login.

I'm brand new to the world of docker, containers and aws. I was going through aws tutorials to deploy a simple nodejs application using docker containers into aws per the following instructions:

https://aws.amazon.com/getting-started/projects/break-monolith-app-microservices-ecs-docker-ec2/module-one/

Per instructions, i've installed docker, AWS CLI and created a AWS ECR for docker to access. I've basically got till the following step: Step 4 Build and Push the docker image - Point 2 - getting login

As per point 2, i copy pasted the login details (docker login -u AWS -p ) and ran it and i got the following warning message which isnt allowing me to login or push the docker image to ECR. I tried to research online a lot on what to change. There are lots of articles mentioning the issue but no clear direction as to what exactly to do. I'm not exactly sure where in the command i should use --password-stdin. I've also tried what was provided in the following link [ Docker: Using --password via the CLI is insecure. Use --password-stdin but that didnt work either

Expected result: Login succeeded

Actual result: WARNING! Using --password via the CLI is insecure. Use --password-stdin.

the warning is fine. have you verified whether the docker push/pull is working ?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM