~/ nmadiraju.com Amazon EKS · Container images and Amazon ECR
arrow_back Back to nmadiraju
Visual Walkthrough · Kubernetes basics

How Container Images and Amazon ECR Work on Amazon EKS

Follow the web app from your laptop to running Pods on EKS, then check yourself with 8 questions.

1Visual Walkthrough

The web app built into an image on a laptop, pushed to Amazon ECR, and pulled by EKS nodes Left, you and your laptop with web's Dockerfile, the image's read-only layers and the source code. Middle, Amazon ECR repository web with its tags and digests, and the node IAM role. Right, EKS cluster web-prod with Deployment web and two nodes, each with an image cache, web Pods and a shared Linux kernel. The walkthrough shows web crashing on a different machine, building an image in layers, running it as a container, pushing to ECR and then only a changed layer, a pull refused until the node role can read ECR, a cached image, the latest tag moving, and a multi-stage build shrinking the download for a new node. You docker · aws CLI YOUR LAPTOP · DOCKER Dockerfile writable layer · this container only web source code server.js · package.json · runs on Node 22 AMAZON ECR · us-east-1 repository web private · account 111122223333 TAG → DIGEST Node IAM role EKS CLUSTER web-prod Deployment web · Pod template Linux kernel · shared by every container here Linux kernel · shared by every container here

    2Quiz to check understanding

    Check yourself