Act 1 Why Cloud?
Act 2 The Deployment Problem
Act 3 Containers — The Shift
Act 4 Docker in Practice
Act 5 Lab Time
Training Workshop · [DATE] · [VENUE] Docker

AWS, Containers
& Docker

From cloud fundamentals to running your first container

BA

Basha

RRR Tech Solutions

Session Roadmap

How today is structured

Act 1

~10 min

Why Cloud?

What cloud computing is, why AWS dominates, and the core services a developer needs to know.

Act 2

~10 min

The Deployment Problem

Why traditional deployment breaks at scale, and why VMs only solved half the problem.

Act 3

~15 min

Containers — The Shift

What containers are, how they compare to VMs, and why Docker became the standard.

Act 4

~15 min

Docker in Practice

Images, Dockerfiles (Node.js and Python), key commands, and layer caching.

Act 5

~rest

Lab Time

Hands-on exercises — you will build, run, and inspect real Docker containers.

01 Act One

Why Cloud?
Understanding the foundation

Cloud fundamentals

What is cloud computing?

🖥️

On-demand compute

Rent servers, storage, and networking by the hour. No hardware to buy, maintain, or retire.

🌍

Global in minutes

Deploy your app to 33 regions worldwide. What used to take weeks now takes 10 minutes.

💳

Pay as you go

Pay only for what you use. Scale up for traffic spikes, scale down when quiet. No waste.

Before cloud: Buy a server → wait 6 weeks → rack it → configure it → pray it doesn't break.
After cloud: Write a command. Pay $0.02/hr. Done.

🙃  yes, we know — "it's just someone else's computer" — and that's exactly what makes it brilliant
Amazon Web Services

AWS — The global infrastructure

33

Regions

Geographic locations — Mumbai, Singapore, US East, EU West…

105

Availability Zones

Isolated data centers per region. If one fails, others keep running.

400+

Edge Locations

CDN points of presence — serve content fast to users everywhere.

Why it matters for you

  • ✓Deploy close to your users — lower latency, better experience
  • ✓Survive data center failures automatically
  • ✓Meet data residency requirements (India data stays in Mumbai)
  • ✓32% of the global cloud market — the most job demand

"Pick the region closest to your users, deploy across 2 Availability Zones, and you've got more reliability than most on-premise setups."

Services overview

Five services every developer needs to know

ServiceCategoryWhat it doesContainer relevance
EC2 Compute Virtual servers — your Linux/Windows machine in the cloud Where your Docker host runs
S3 Storage Object storage — files, images, backups, static assets Store build artifacts, images
VPC Network Your private network in the cloud — subnets, firewalls Container networking lives here
ECR Registry Elastic Container Registry — private Docker image store Direct — push/pull your images
ECS / EKS Containers Run Docker containers at scale — managed orchestration Direct — production container platform
Why this matters

AWS owns the container era

Market reality

  • ·60% of Kubernetes in production runs on AWS (EKS)
  • ·AWS job postings outnumber Azure + GCP combined in India
  • ·ECR + ECS is the most common container deployment path for startups

The learning path

Docker → ECR → ECS / EKS → Production

Learn Docker locally → push images to ECR → run on ECS → scale on EKS. Each step is the same container, different host.

What you will learn today translates directly to

  • ✓Running containers on any EC2 instance
  • ✓Pushing Docker images to ECR
  • ✓Deploying services on ECS (same Docker commands)
  • ✓Reading and writing any team's Dockerfile
  • ✓Debugging container issues in production
02 Act Two

The Deployment Problem
Why traditional methods break at scale

The classic problem

"It works on my machine"

Dev machine

  • Python 3.11
  • Node 20
  • Ubuntu 22.04
  • DB at localhost
  • ENV var set

Staging server

  • Python 3.8
  • Node 16
  • CentOS 7
  • DB at 192.168.x.x
  • ENV var maybe

Production

  • Python 3.7
  • Node 14
  • RHEL 8
  • DB at prod-db.internal
  • ENV var not set

Result: Bugs that only appear in production. Hours of debugging. Deployment day = everyone on call. This is a solved problem — but most teams still suffer it.

This is Fine

this is fine

First solution

VMs: They solved half the problem

What VMs solved ✓

  • ✓Each app gets its own OS — no conflicts
  • ✓Isolation — one app crashing can't kill another
  • ✓Snapshots — save and restore machine state
  • ✓Better than bare metal shared hosting

What VMs didn't solve ✕

  • ✕Each VM needs a full OS: 2–8 GB overhead
  • ✕Boot time: 1–3 minutes per VM
  • ✕1 server → 5–10 VMs before it's full
  • ✕Dev and prod VMs still drift apart over time
  • ✕Moving a VM between clouds? Good luck.

"VM sprawl" — enterprises running thousands of VMs, most sitting at 5% CPU utilisation, burning money.

The gap

What we actually need

🔒

Isolation

Apps can't interfere with each other. Same guarantee as a VM.

📦

Portability

Build once. Run on any machine, any cloud, any environment. No drift.

⚡

Speed

Start in 1–2 seconds, not 1–3 minutes. Scale up in real time.

🏗️

Density

100 apps on one server, not 10. 90% less wasted overhead.

This is exactly what containers deliver. →

03 Act Three

Containers — The Shift
A new way to package and run software

The concept

What is a container?

Shipping containers at port

The analogy 🚢

Before shipping containers, every port used different equipment. Loading a ship took days. Cargo often broke in transit.

After the standard shipping container: same box, any ship, any port, any crane. Global trade exploded.

Software containers do the same — standardise the "box" so it runs identically on any machine.

In software terms

Your app

The code you wrote

+

Dependencies

Libraries, runtime, packages

+

Config

Env vars, ports, file system

= one standardised, portable unit
Head to head

VM vs Container

PropertyVirtual Machine (VM)Container
What's inside Full OS + app + dependencies App + dependencies only (shares host OS kernel)
Size 2–10 GB per VM 50–500 MB per container
Start time 1–3 minutes 1–3 seconds
Apps per server 5–10 50–100+
Portability VM images are large, cloud-specific Build once, run anywhere Docker runs
Dev / prod parity Still drifts without strict discipline Identical — same image in dev, staging, prod
The case for containers

Five advantages that matter in practice

1 — Consistency

Same container image in dev, staging, and production. "It works on my machine" becomes "it works everywhere."

2 — Portability

Build once, run anywhere Docker is installed — laptop, CI server, AWS, GCP, bare metal.

3 — Speed

Start in seconds, not minutes. Scale a new instance in a CI pipeline in under 5 seconds.

4 — Efficiency

10× more apps on the same hardware vs VMs. Each container uses only what it needs — no OS overhead.

5 — Version control for infra

Your Dockerfile lives in git. Revert a bad deployment by rolling back to the previous image tag. Full audit trail.

Netflix runs 2M+ containers per week.
Spotify deploys 500+ times a day — with containers.

The ecosystem

Docker — The container platform

The core tools

Docker Engine

The daemon that builds and runs containers on your machine

Docker Hub

Public registry — 1M+ ready-to-use images (nginx, postgres, python, node…)

Docker Compose

Run multi-container apps (app + database + cache) with one command

Docker Desktop

GUI + CLI for Mac and Windows — easiest way to get started locally

Docker Moby

Who uses it

  • ✓Netflix — container-per-microservice at massive scale
  • ✓Spotify — 500+ deploys per day via Docker pipelines
  • ✓Airbnb — consistent environments across 1000+ engineers
  • ✓Every major bank — containerised compliance workloads

Docker is now the industry standard.
Not knowing it is a career gap.

04 Act Four

Docker in Practice
Images, Dockerfiles, commands

The vocabulary

Four concepts — know these cold

Image

A read-only blueprint. Contains the OS base, your code, all dependencies. Like a class — not running yet.

Analogy: a recipe. The same recipe makes identical dishes every time.

Container

A running instance of an image. Has its own process, filesystem, network. Like an object from a class.

You can run 50 containers from the same image simultaneously.

Dockerfile

A text file with build instructions. How to build an image step by step. Lives in git alongside your code.

If you can read a Dockerfile, you understand exactly what's in an image.

Registry

A store for images. Push your image → others pull it. Docker Hub is public. ECR (AWS) is your private store.

Same idea as npm for packages — but for entire application environments.

End to end

The Docker workflow

✍️

Write

Your code + Dockerfile

→
🔨

Build

docker build -t myapp .

→
📤

Push

docker push myapp:v1

→
▶️

Run

docker run myapp:v1

The image you build on your laptop and the one that runs in AWS are byte-for-byte identical. That's the guarantee.

Dev machine

Local runs

CI/CD pipeline

Automated tests

AWS ECS / EKS

Production

Dockerfile anatomy — Node.js

Containerising a Node.js app

FROM node:20-alpine

WORKDIR /app

COPY package*.json ./

RUN npm ci --omit=dev

COPY . .

EXPOSE 3000

CMD ["node", "server.js"]
1 FROM — Base image. node:20-alpine is Node 20 on a tiny Alpine Linux (5 MB OS, not 1 GB Ubuntu).
2 WORKDIR — All subsequent commands run from /app inside the container.
3 COPY package*.json first — Copy dependency manifest before source code. This is the layer caching trick.
4 RUN npm ci — Install dependencies. This layer is cached as long as package.json doesn't change — fast rebuilds.
5 COPY . . — Copy the rest of your code. This layer re-runs only when source files change.
6 EXPOSE 3000 — Documents which port the app listens on. Use -p 3000:3000 when running.
7 CMD — Default command when the container starts. Only one CMD per Dockerfile.
Dockerfile anatomy — Python / Flask

Containerising a Python app

FROM python:3.11-slim

WORKDIR /app

COPY requirements.txt .

RUN pip install --no-cache-dir -r requirements.txt

COPY . .

EXPOSE 5000

ENV FLASK_ENV=production

CMD ["python", "app.py"]
1 FROM python:3.11-slim — Slim variant: Debian base stripped of docs and extras. Smaller than python:3.11 (~45 MB vs ~900 MB).
2 COPY requirements.txt first — Same layer caching pattern as Node.js. pip install is slow; don't re-run it on every code change.
3 --no-cache-dir — Tells pip not to cache packages inside the image. Keeps image size small.
4 ENV FLASK_ENV — Set environment variables baked into the image. Override at runtime with -e flag.
5 CMD ["python", "app.py"] — Exec form (array) is preferred over shell form — proper signal handling, clean shutdown.

Same pattern, different language. The Dockerfile structure is the same regardless of stack — only the base image and package manager differ.

Reference

Commands you'll use every day

Images

docker pull nginxDownload image from registry
docker build -t myapp .Build image from Dockerfile
docker imagesList images on this machine
docker rmi myappRemove an image
docker push myapp:v1Push image to registry

Containers

docker run -p 80:80 nginxStart container, map port
docker run -d nginxStart in background (detached)
docker psList running containers
docker ps -aAll containers (inc. stopped)
docker stop <id>Gracefully stop container

Inspect & debug

docker logs <id>View container stdout/stderr
docker logs -f <id>Follow live log output
docker exec -it <id> bashOpen shell inside container
docker inspect <id>Full config JSON for container
docker statsLive CPU / memory usage

Pro tip — cleanup

docker system prune -a

Removes all stopped containers, dangling images, unused networks. Frees disk space quickly.

Performance insight

Layer caching — why it matters

How Docker layers work

FROM node:20-alpine Layer 1 — rarely changes
COPY package*.json ./ Layer 2 — changes rarely
RUN npm ci Layer 3 — only re-runs if layer 2 changed
COPY . . Layer 4 — changes on every code edit
CMD ["node", "server.js"] Layer 5 — rarely changes

The impact

Wrong order: COPY . . before npm ci

Every code change invalidates the npm ci layer. Full npm install on every rebuild. 2–5 minutes.

Right order: package.json before COPY . .

npm ci layer is cached. Only your source code layer re-runs. 3–5 seconds.

Rule: copy what changes least first.

Same principle applies to Python (requirements.txt before .) and any other stack.

Waiting...

wrong order 😩

Smooth!

cached. done. 😎

05 Act Five

Lab Time
Hands-on — your turn

Lab overview

Six exercises — in order

Your turn!

your turn!

01

Run official images

Pull and run nginx. Open it in a browser. Run a Python container. See that isolation is real.

02

Inspect a running container

Use docker ps, docker exec, docker logs. Explore the filesystem inside a live container.

03

Build a Node.js image

Write a Dockerfile for the provided Express app. Build it, run it, hit the API endpoint.

04

Build a Python Flask image

Write a Dockerfile for the provided Flask app. See that the same pattern applies across stacks.

05

Two containers talking

Run the Node.js app and a Redis container on the same Docker network. App stores data in Redis.

06

Docker Compose

Replace exercise 05 with a single docker-compose.yml. One command brings everything up.

Let's go

Access your lab environment

Step 1

Check your email

You received a "Your lab access is ready" email from PlayLabs. Click the magic link.

Step 2

Note your credentials

Your username and password are on the page. Click each field to select all — copy them.

Step 3

Open your lab

Click "Open Lab Environment" on the credentials page. Use your username and password to log in.

Not registered yet?

Scan the QR code or visit the URL below to register — it only takes 2 minutes.

QR code
[add before session]

Go get 'em!

go get 'em 🦍

Questions before we start?

Raise your hand or drop a message in chat.