Helmsman Academy
Containers and Docker, basic to advanced

Docker fundamentals

7 lessons · about 98 minutes of reading · free

This page is the public course outline. Lessons, labs, tools and exams open after you sign in to your free account.

Sign in and start

In short

Docker from installation to confident daily use: the engine's architecture, running and inspecting containers, images and digests, writing Dockerfiles, BuildKit caching and multi-stage builds, storage and networking.

Before you start: Linux for Kubernetes (course 1).

What you'll learn

Lessons

1. Installing Docker: Engine, Desktop and the daemon

How Docker is built (client, dockerd, containerd, runc), the ways to install it, the Desktop licence and safe post-install setup.

Sign in to open the lesson

2. Running containers: the lifecycle

run, ps, logs, exec, stop, rm: what each does, restart policies, signals, PID 1 and exit codes.

Sign in to open the lesson

3. Images: tags, digests and layers

Pull, tag and inspect images; why digests beat tags; layers, history, multi-architecture images and cleaning up.

Sign in to open the lesson

4. Writing Dockerfiles

Every common instruction, shell versus exec form, ENTRYPOINT versus CMD, .dockerignore, and running as non-root.

Sign in to open the lesson

5. BuildKit, the build cache and multi-stage builds

How the cache decides what to rebuild, ordering for speed, cache and secret mounts, and multi-stage builds for tiny images.

Sign in to open the lesson

6. Storage: volumes, bind mounts and tmpfs

Where container data should live, how each mount type behaves, permissions, and backing up volumes.

Sign in to open the lesson

7. Container networking

bridge, host and none drivers, user-defined networks and DNS, publishing ports, and why published ports can bypass your firewall.

Sign in to open the lesson

Common questions

Name the four components between the CLI and your process.

dockerd, containerd, the shim, runc.

Exit code 143 means?

The process exited on SIGTERM (128 + 15).

Can two different images share the same tag over time?

Yes; tags are mutable pointers.

COPY or ADD for local files?

COPY; ADD has URL and auto-extract behaviour.

What invalidates a COPY step's cache?

A change in the content of the copied files.

Which mount suits a scratch directory with sensitive temp files?

tmpfs.

What IP does Docker's embedded DNS answer on inside containers?

127.0.0.11.