Skip to Content
AWS Automation Cookbook
book

AWS Automation Cookbook

by Nikit Swaraj
November 2017
Intermediate to advanced
388 pages
8h 46m
English
Packt Publishing
Content preview from AWS Automation Cookbook

To authenticate Docker client with ECR

Once we have our repository in place in AWS ECR, and assuming AWS CLI is installed in the server from where the Docker client is authenticating and pushing the image, we need to perform the following steps:

  1. We need to retrieve the ecr login credentials by entering the following command:
     aws ecr get-login --no-include-email
  1. Once we run the preceding command, we will get the ECR Docker Registry Login credentials. If you check the output of your command, it will be docker login -u Username -p PasswordString ECRRegistryURL:
    root@awsstar:~# aws ecr get-login --no-include-email docker login -u AWS -p eyJwYXlsb2FkIjoiYW5FRXRPVE5sc0pxODVxOGQ3VkI1bUlqeVJlT1FJZHpFd0JMaVVBdWs0RVZTaFlDRWRZd0JUSEtFODY0QUEyMkFYMXVXSkkwM3ZXeFpqam5EU3E1QnpENVFHcHhScmZuQWRZVExrTE1BaUpscnBaVXhWSE5HQ3hCVHZaVVBsRERyRHVUYy9LMHc2WEdRSTdtbjk0cXJPVXdyajZnTWJ4NmYzSDlSeGEvdmU0aUcvTkh0ZSt0S0RRdk8zZUltSE1QZGRKdHdGcHpVSG1McUdWQ0habTV2bUhMbTlQZGxvUk9DRnNlaG5QM2g1eVNkTGo0Smp1U1VJYUZrUysya1Bk= ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Automation in AWS with CloudFormation, CLI, and SDKs

Automation in AWS with CloudFormation, CLI, and SDKs

Richard A. Jones
AWS Administration Cookbook

AWS Administration Cookbook

Rowan Udell, Lucas Chan
AWS Security Cookbook

AWS Security Cookbook

Heartin Kanikathottu
AWS Networking Cookbook

AWS Networking Cookbook

Jhalak Modi, Satyajit Das

Publisher Resources

ISBN: 9781788394925Other