From cloud fundamentals to running your first container
Basha
RRR Tech Solutions
~10 min
Why Cloud?
What cloud computing is, why AWS dominates, and the core services a developer needs to know.
~10 min
The Deployment Problem
Why traditional deployment breaks at scale, and why VMs only solved half the problem.
~15 min
Containers — The Shift
What containers are, how they compare to VMs, and why Docker became the standard.
~15 min
Docker in Practice
Images, Dockerfiles (Node.js and Python), key commands, and layer caching.
~rest
Lab Time
Hands-on exercises — you will build, run, and inspect real Docker containers.
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.
Regions
Geographic locations — Mumbai, Singapore, US East, EU West…
Availability Zones
Isolated data centers per region. If one fails, others keep running.
Edge Locations
CDN points of presence — serve content fast to users everywhere.
Why it matters for you
"Pick the region closest to your users, deploy across 2 Availability Zones, and you've got more reliability than most on-premise setups."
| Service | Category | What it does | Container 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 |
Market reality
The learning path
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
Dev machine
Staging server
Production
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
What VMs solved ✓
What VMs didn't solve ✕
"VM sprawl" — enterprises running thousands of VMs, most sitting at 5% CPU utilisation, burning money.
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. →
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
| Property | Virtual 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 |
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 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
Who uses it
Docker is now the industry standard.
Not knowing it is a career gap.
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.
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
FROM node:20-alpine
WORKDIR /app
COPY package*.json ./
RUN npm ci --omit=dev
COPY . .
EXPOSE 3000
CMD ["node", "server.js"]
node:20-alpine is Node 20 on a tiny Alpine Linux (5 MB OS, not 1 GB Ubuntu).
/app inside the container.
-p 3000:3000 when running.
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"]
python:3.11 (~45 MB vs ~900 MB).
-e flag.
Same pattern, different language. The Dockerfile structure is the same regardless of stack — only the base image and package manager differ.
Images
docker pull nginx | Download image from registry |
docker build -t myapp . | Build image from Dockerfile |
docker images | List images on this machine |
docker rmi myapp | Remove an image |
docker push myapp:v1 | Push image to registry |
Containers
docker run -p 80:80 nginx | Start container, map port |
docker run -d nginx | Start in background (detached) |
docker ps | List running containers |
docker ps -a | All 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> bash | Open shell inside container |
docker inspect <id> | Full config JSON for container |
docker stats | Live CPU / memory usage |
Pro tip — cleanup
docker system prune -a
Removes all stopped containers, dangling images, unused networks. Frees disk space quickly.
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.
wrong order 😩
cached. done. 😎
your turn!
Run official images
Pull and run nginx. Open it in a browser. Run a Python container. See that isolation is real.
Inspect a running container
Use docker ps, docker exec, docker logs. Explore the filesystem inside a live container.
Build a Node.js image
Write a Dockerfile for the provided Express app. Build it, run it, hit the API endpoint.
Build a Python Flask image
Write a Dockerfile for the provided Flask app. See that the same pattern applies across stacks.
Two containers talking
Run the Node.js app and a Redis container on the same Docker network. App stores data in Redis.
Docker Compose
Replace exercise 05 with a single docker-compose.yml. One command brings everything up.
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 🦍
Questions before we start?
Raise your hand or drop a message in chat.