Automate Marketing Initiatives with Salesforce Marketing Cloud Learn More

How to push Docker images into AWS ECR?


Docker is a container or a software platform that allows you to build, test, and deploy distributed applications. Docker Container can be explained as a running instance of an image, and Docker Images can be created by including commands and instructions line by line in a text file, which is called Dockerfile.

Docker Images are used to create Docker containers. Images contained the application files, configuration files, or multiple images e.g Ubuntu, and the Dockerfile as well.

Dockerfile consists of many commands which will get execute step by step in its separate or temporary container and the container will get automatically removed as the command will get executed.
There will be a main Container in which all the sub-containers will get created and deleted automatically.

In this tutorial, we will push the Docker image into the AWS ECR registry.


  • A Docker image
  • AWS login credentials
  • AWS ECR registry
  • Need permissions to IAM role to access ECR

Steps to push the image:

  • Step-1: AWS Authentication
  • Step-2: Get Docker images
  • Step-3: Tagging
  • Step-4: Push the image into ECR

AWS Authentication

  • You must log in to AWS ECR from Docker client. To authenticate an Amazon ECR registry to Docker with get-login-password, run the command: “aws ecr get-login-password”.

    Note: “Specify the AWS username and registry URI when passing the auth token to the command for docker login.”

    Command to authenticate with AWS ECR registry:

    aws ecr get-login-password --region us-west-1 | docker login --username zehntech --password-stdin


A place for big ideas.

Reimagine organizational performance while delivering a delightful experience through optimized operations.

Get Docker Images

To get the list of docker images, run below command in your Docker CLI tool:

dokcer images

This will list all the docker images created in your docker environment.

Copy the Docker Image ID which you want to push into the AWS ECR registry.
You can get an image with the “repository:tag” value or with the image ID in the output of the above command.

Also Read:


You can assign your metadata to each repository in the form of tags. It helps you to manage your Amazon ECR repositories.

Tag your image with the Amazon ECR registry.
Note: “The name of the repository should be the same as the name of your image.

Command to tag the image:

docker tag e6ge4d780n39

here, e6ge4d780n39 is the tag of the image, and zehntech-app is the id of the image.


Push the image into ECR

Command to Push the image into ECR:

docker push

You can review the Amazon ECR registry for the confirmation. The image should be visible there.

Note: You can apply multiple tags per image in AWS ECR. The default maximum value is 100 tags.


In this tutorial, we have authenticated to the Amazon ECR registry from Docker CLI using the “aws ecr get-login-password” command then get tagged the Docker image and pushed the image into the ECR registry.

Top Stories

Supercharge Your Business Integrating E commerce Business With Odoo For 20% Revenue Growth
Supercharge Your Business: Integrating E-commerce Business With Odoo For 20% Revenue Growth
In the dynamic world of digital commerce, businesses are constantly seeking innovative strategies to drive growth and stay ahead of the competition. One transformative approach is to integrate e-commerce business with Odoo. This integration promises not just streamlined operations but also a significant boost in revenue – with some businesses
Boost Revenue by 15% How Odoo and BI Tool Integration Can Transform Your Business Analytics
Boost Revenue by 15%: How Odoo and BI Tool Integration Can Transform Your Business Analytics
In today's fast-paced business landscape, the ability to effectively collect, analyze, and leverage data is crucial. This is where the Odoo and BI Tool Integration come into play as game changers. The collaboration between Odoo, a suite of business applications, and BI tools can transform data analytics and reporting in
How To Manage Users & Access Control in Odoo and Protect Your Data
How To Manage Users & Access Control in Odoo and Protect Your Data
In the enterprise resource planning (ERP) world, it is essential to manage users & access control in Odoo. This is not a feature. A necessity. Odoo provides a range of applications that offer a foundation for managing users and access control. This ensures both data security and operational efficiency. The
Revolutionizing Digital Transformation with Salesforce Experience Cloud
Revolutionizing Digital Transformation with Salesforce Experience Cloud
In the ever-evolving tech landscape, businesses must adapt, innovate, and thrive. Salesforce Experience Cloud (SEC for short) is at the heart of this revolution. SEC is reshaping enterprise engagement with customers and streamlining operations. But how do you win the race and stand out among numerous companies in terms of
How Salesforce Experience Cloud Integration Boosts Productivity in Business (1)
How Salesforce Experience Cloud Integration Boosts Productivity in Business?
More than 150,000 companies have grown their businesses by shaking hands with Salesforce. Developed and customer-preferred companies like IBM, Amazon Web Services, Toyota, T-Mobile and many more are now fans of Salesforce. So, if an organization wants to become the next big fish in its industry, incorporating Salesforce Experience Cloud
From Insight to Action The Essential Guide to Salesforce Experience Cloud Introduction
From Insight to Action: The Essential Guide to Salesforce Experience Cloud Introduction
In this fast-paced world, we live in today, it's astonishing to know that a staggering 84% of customers prioritise the experience they have with a company just as much as the actual products and services offered. This eye-opening statistic heralds a shift in the business landscape, underscoring the equal importance


          Keep an eye on your inbox for the PDF, it's on its way!

          If you don't see it in your inbox, don't forget to give your junk folder a quick peek. Just in case.

              You have successfully subscribed to the newsletter

              There was an error while trying to send your request. Please try again.

              Zehntech will use the information you provide on this form to be in touch with you and to provide updates and marketing.