cd ~/tutorials/docker

Docker Tutorial

Learn Docker from zero: what containers are, how images are built, and how to run, debug and persist real applications.

9 lessons · 39 min

Start the course →

This course takes you from “what is a container?” to writing your own Dockerfiles and keeping data safe with volumes. Every lesson has terminal sessions you can follow on your own machine, a quick exercise and answers to the questions people ask most.

Before you start: you only need a terminal and basic command line skills. Lesson 4 shows how to install Docker on Linux, macOS and Windows.

When you finish, keep the Kubernetes Cheatsheet close: it is the natural next step once your applications run in containers.

ls ./lessons

  1. Introduction to DockerWhat Docker is, the problem it solves, and your first containers: from hello-world to a small web app you build yourself.beginner5 min readCompleted
  2. Why Use Docker?The practical reasons teams adopt containers: consistent environments, fast onboarding, reliable CI/CD and denser servers, plus when Docker is not the right tool.beginner4 min readCompleted
  3. Docker vs Virtual MachinesHow containers and virtual machines isolate workloads, what each costs in size, speed and security, and why most clouds run containers on top of VMs.beginner4 min readCompleted
  4. Installing DockerInstall Docker Engine on Ubuntu and Rocky Linux from the official repositories, set up Docker Desktop on macOS and Windows, and fix the two errors everyone hits first.beginner4 min readCompleted
  5. Key Docker ConceptsThe vocabulary you need for everything else: images, layers, containers, registries, tags and digests, Dockerfiles, volumes, networks and Compose.beginner4 min readCompleted
  6. Docker ImagesPull, inspect, tag, push and clean up images, choose a good base image, and build for both amd64 and arm64.intermediate4 min readCompleted
  7. Docker ContainersRun containers with the flags that matter, read logs, get a shell inside, set restart policies and resource limits, and stop them the right way.intermediate4 min readCompleted
  8. Dockerfile BasicsEvery essential Dockerfile instruction, how layer caching makes builds fast, multi-stage builds for small images, and running as a non-root user.intermediate5 min readCompleted
  9. Docker VolumesKeep data alive across container restarts with named volumes, use bind mounts for development, back up and restore volumes, and avoid permission surprises.intermediate5 min readCompleted

↑ ↓ navigate Enter open Esc close