Join us at GITEX 2025! Discover our solutions at Hall 4, Booth H-30 Schedule a Meeting Today.
Automate Marketing Initiatives with Salesforce Marketing Cloud Learn More
Join us at GITEX 2024! Discover our solutions at Hall 4, Booth H-30 Book your live demo today.

How to push Docker images into AWS ECR?

Introduction

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.

Prerequisites

  • 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 aws_account_id.dkr.ecr.us-west-1.amazonaws.com

     

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:

Tagging

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 aws_account_id.dkr.ecr.region.amazonaws.com/zehntech-app

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 aws_account_id.dkr.ecr.region.amazonaws.com/zehntech-app

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.

Summary

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

Odoo direct printing workflow showing one click printing without PDF download or printer selection (1)
The Hidden Cost of Printing from Odoo — And How to Fix It
Every invoice, picking slip and delivery order printed from Odoo goes through the same cycle: click print, wait for the PDF to download, open the file, go to File → Print, select the correct printer, click print again. Six steps. Every document. Every day. For a single team member printing
Appointment Booking
How to Set Up Appointment Booking in Odoo — Complete Setup Guide
Setting up online appointment booking in Odoo does not require a developer or a third-party scheduling tool. The Zehntech Odoo Appointment Booking app gives you a live 24/7 booking page, real-time calendar sync, and automated confirmations — all inside your existing Odoo instance.This guide is for business owners, Odoo administrators,
Advanced Gantt Scheduling in Odoo
How to Set Up Advanced Gantt Scheduling in Odoo — Complete Guide
Advanced project scheduling inside Odoo does not require exporting to MS Project or maintaining a separate timeline tool. The Zehntech Odoo Advanced Gantt App for Project adds dependency types, automatic cascade, critical path visualization, resource workload management and baseline tracking to your existing Odoo projects — in under 10 minutes.
ai automation for small business
How Small Businesses Can Use AI Automation to Save 10+ Hours a Week without Coding
AI automation for small businesses is simpler than most owners expect. The tools exist, they are affordable, and none of them require coding. What most businesses lack is not access — it is a clear starting point. This guide provides that. It covers which tasks to automate first, which no-code
Odoo Tansforming business oprations
How Odoo is Transforming Business Operations in 2026 And Why Companies Are Switching Fast
In 2026, businesses are under constant pressure to do more with less—reduce costs, improve efficiency, and scale faster than ever before. Yet, many companies are still stuck with disconnected systems, manual processes, and outdated ERP solutions. This is exactly why Odoo ERP for business operations is gaining massive traction. Companies
Step-by-step guide to setting up Manufacturing Gantt Scheduling in Odoo — Zehntech
How to Set Up Manufacturing Gantt Scheduling in Odoo — Step-by-Step
Manual exports can work — for very small teams with low-frequency reporting needs. If your team reports monthly, uses a single Odoo module, and has an analyst with spare time, a manual export process is adequate. But for most Odoo teams reporting weekly or more frequently, there is a measurable

          Success!!

          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.