A sand paper harbor pier holds two small crates, a cream paper storefront with a blank window, and a sand paper chest joined by a coral rope, with a closed slate-blue shipping container behind, against torn-paper hills and blue water.

Series

Containers from Zero

A ten-lesson foundation in Docker and Compose, from what a container is to a small web app with a database on one machine, one lesson a day.

What you'll learn

  • What a container is, how it differs from a virtual machine, and how to build an image with a Dockerfile.
  • How to run containers with ports, volumes, networks and configuration, then describe them in one Compose file.
  • How to run a small web app with a database, read health checks, restart policies and logs when it fails, and clean up.

Who it's for

People new to containers: a developer who wants to run their app the same way everywhere, a student, or an operator who has seen docker run in a README and wants to understand it.

Lessons
1 lesson
Time per lesson
about 15 minutes of reading, plus an optional lab

Start lesson 1

Latest lesson

Containers from Zero · The pieces 1 of 6 · Lesson 1 ·

Containers from Zero, part 1: what a container is

A container is an ordinary Linux process with its own view of files, processes, network and hostname. Install Docker Engine and Compose, then find one container from inside and from the host.

  1. Containers from Zero · The pieces 1 of 6 · Lesson 1 ·

    Containers from Zero, part 1: what a container is

    A container is an ordinary Linux process with its own view of files, processes, network and hostname. Install Docker Engine and Compose, then find one container from inside and from the host.