Whole course on one page
Docker, Kubernetes & DevOps Masterclass: 8 lessons, a few lines each. About 5 minutes to read. Use it to preview the course or to revise.
Containers from Zero
1. What DevOps and Containers Really Mean opens the one-minute view
A container packs an app with everything it needs to run. So it runs the same way on any machine with a container engine. DevOps means builders and operators share the work and automate it.
Steps: 1. Install Docker · 2. Run docker run --rm hello-world · 3. Run docker images · 4. Run docker run --rm -it alpine sh
✗ Thinking an image and a container are the same thing ✓ The image is the package. The container is a running copy.
Words: DevOps, Image, Container, Virtual machine
📌 An image is the packed box. A container is the box in use.
2. Writing Your First Dockerfile opens the one-minute view
A Dockerfile is a text file of steps that Docker follows to build an image. Each step is a layer. Docker reuses layers that have not changed.
Steps: 1. Start with FROM · 2. Copy the package files first · 3. Run the install step · 4. Copy your code, then set CMD · 5. Build and run the image
✗ Copying all your code before the install step ✓ Copy package files, install, then copy your code
Words: Dockerfile, Layer, Cache, Tag
📌 Put rarely-changing steps first so the cache saves you time.
3. Volumes, Networks and Docker Compose opens the one-minute view
Docker Compose describes all your containers in one file and starts them together. A volume keeps data outside a container. So the data stays when the container is replaced.
Steps: 1. Write compose.yaml with two services · 2. Give db a named volume · 3. Point web at the hostname db · 4. Run docker compose up -d · 5. Run down, then up again
✗ Running a database container with no volume ✓ Give the data folder a named volume
Words: Docker Compose, YAML, Volume, Network
📌 Containers are temporary. Volumes keep what matters.
Kubernetes: Running Containers at Scale
4. Kubernetes Core Ideas: Pods, Deployments, Services opens the one-minute view
With Kubernetes you describe what you want, such as three copies of your app. Kubernetes keeps checking and fixing until that is true. A Service gives the copies one stable address.
Steps: 1. Get a local cluster and kubectl · 2. Load your image into the cluster · 3. Apply your Deployment and Service · 4. Delete one pod and watch · 5. Forward a port and open the app
✗ Telling Kubernetes each step, one pod at a time ✓ Set replicas in a Deployment and let Kubernetes do it
Words: Pod, Deployment, Service, Desired state
📌 You describe what you want. Kubernetes keeps making it true.
5. Config, Secrets, Health Checks and Scaling opens the one-minute view
Keep settings outside the image. Add health checks so Kubernetes knows when a pod is ready or stuck. Say how much CPU and memory each pod needs, and let Kubernetes add pods under load.
Steps: 1. Move a setting into a ConfigMap · 2. Add a /healthz route and both probes · 3. Set resource requests and limits · 4. Add an autoscaler · 5. Release a new image tag
✗ Treating a Secret as safely locked by default ✓ Restrict who can read Secrets
Words: ConfigMap, Secret, Readiness probe, Liveness probe
📌 Healthy, right-sized, configurable pods make a cluster reliable.
Automating Everything: CI/CD and Operations
6. CI/CD Pipelines: An Assembly Line for Code opens the one-minute view
A CI/CD pipeline runs the same steps on every change: test, build the image, push it, deploy. If a step fails, the change stops there.
Steps: 1. Push your app to a GitHub repository · 2. Add a workflow file · 3. Run the tests first · 4. Build and push the image · 5. Break a test on purpose
✗ Relying on the latest tag in production ✓ Tag each image with its commit SHA
Words: CI, CD, Registry, SHA
📌 Small, automated, tested releases are safer than big manual ones.
7. Observability and Security Basics opens the one-minute view
Logs, metrics and traces show what your running system is doing. Small security habits keep containers safe. Do not run as root, and keep secrets out of images.
Steps: 1. Write logs to standard output · 2. Set alerts on what users feel · 3. Convert to a multi-stage build · 4. Add USER node to the Dockerfile · 5. Scan the image and read the report
✗ Baking a secret into the image ✓ Inject secrets when the container runs
Words: Logs, Metrics, Traces, Least privilege
📌 If you cannot see it, you cannot fix it. If you do not lock it, someone may open it.
8. Final Project: Ship a Two-Service App End to End opens the one-minute view
You take a small web app with a database from your laptop to a Kubernetes cluster. You add one layer at a time: Docker, then Compose, then Kubernetes, then CI.
Steps: 1. Write a multi-stage Dockerfile · 2. Write compose.yaml for local work · 3. Write the Kubernetes manifests · 4. Add probes and resource requests · 5. Set up CI and write a README
✗ Setting up all four layers before testing any ✓ Get each layer working, then add the next
Words: Manifest, Non-root user, README
📌 One layer at a time: Docker, Compose, Kubernetes, then CI.
This page is a summary. It does not replace the lessons, where each idea has an example, pictures and practice.