DEV Community

Discussion on: Deploy Rails in Amazon ECS: Part 2 - Push an image to ECR

Collapse
 
kavitajadhav profile image
Kavita Jadhav

Thank you Raphael for such detailed tutorial.

I face one issue at point (5.3). Below command didn't work for me.
*aws ecr get-login-password | docker login --username AWS --password-stdin *

To make it work I had to provide registry url in the end of docker login command

Collapse
 
sunpochin profile image
Sun Pochin • Edited

for example, on my terminal I have to enter:

aws ecr get-login-password | docker login --username AWS --password-stdin 789819000571.dkr.ecr.ap-southeast-1.amazonaws.com/sample-docker-rails-app:v1.0.0
Enter fullscreen mode Exit fullscreen mode

readers you need to replace

789819000571.dkr.ecr.ap-southeast-1.amazonaws.com/sample-docker-rails-app:v1.0.0
Enter fullscreen mode Exit fullscreen mode

with your own repository URI created from section (3.2).

and the terminal will return:

Login Succeeded
Enter fullscreen mode Exit fullscreen mode
Collapse
 
raphael_jambalos profile image
Raphael Jambalos

Hi Kavita, thank you for taking the time to read the article. I hope it was helpful. I'm so sorry I wasn't able to get back to you sooner. Can you give me a sample of the docker login command (redact the url if you have to)? This is so I can apply the relevant changes to the article

Collapse
 
cataherrera profile image
Catalina Herrera • Edited