---
title: "Create Docker NGINX Image and Push to AWS ECR"
url: https://daily.dev/posts/create-docker-nginx-image-and-push-to-aws-ecr-5-i1hgya7
source_url: https://blog.devgenius.io/create-docker-nginx-image-and-push-to-aws-ecr-a09522932d3d?source=rss----4e2c1156667e---4
type: article
source: "Dev Genius"
published: 2022-07-25T15:44:14.055Z
updated: 2022-07-25T15:44:14.054Z
tags: ["aws", "containers", "docker", "nginx"]
reading_time: 2
upvotes: 10
comments: 1
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Docker NGINX Image and Push to AWS ECR

**[Dev Genius](https://daily.dev/sources/devgenius)** · 2 min read · 10 upvotes · 1 comments

## Summary

In this scenario, we were asked to use Nginx to deploy our website. We will pull the latest version of Nginx from the Docker registry. Next, we will create our Dockerfile & index.html file in the same directory. Finally, we’ll create a Docker container from our new image using the following command.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://blog.devgenius.io/create-docker-nginx-image-and-push-to-aws-ecr-a09522932d3d?source=rss----4e2c1156667e---4>

## Community discussion

Top comments from developers on daily.dev.

**@avsthiago** · 0 upvotes

> Nice post, and improvement would be to fetch the token from the stdin using the following command.
>
> aws ecr get-login-password --region us-east-1 | docker  login <ECR_URI> --username AWS --password-stdin

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 0 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments
- [CNCF Unveils Schedule for KubeCon \+ CloudNativeCon Europe 2026](https://daily.dev/posts/cncf-unveils-schedule-for-kubecon-cloudnativecon-europe-2026-ikhcoa5cb) · CNCF · 2 upvotes · 0 comments
- [CNCF Debuts KubeCon \+ CloudNativeCon Japan 2026 Schedule](https://daily.dev/posts/cncf-debuts-kubecon-cloudnativecon-japan-2026-schedule-xp5pyudub) · CNCF · 1 upvotes · 0 comments

---

Tags: [#aws](https://daily.dev/tags/aws), [#containers](https://daily.dev/tags/containers), [#docker](https://daily.dev/tags/docker), [#nginx](https://daily.dev/tags/nginx)

[View this post on daily.dev](https://daily.dev/posts/create-docker-nginx-image-and-push-to-aws-ecr-5-i1hgya7)
