DEV Community

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

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