Helmsman Academy
Docker Professional: zero to expert

Building images like a professional: Dockerfiles, cache, multi-stage, buildx and supply-chain hygiene

6 lessons · about 102 minutes of reading · Helmsman Pro

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

Production Dockerfiles: instructions and PID 1, cache-friendly ordering and cache mounts, multi-stage builds onto slim, distroless or scratch bases, BuildKit and buildx for multi-platform images and build secrets, recipes for Node.js, Python, Java, Go and .NET, and tagging, labels, SBOMs and promotion by digest.

Before you start: Course 54.

What you'll learn

Lessons

1. Dockerfile fundamentals: instructions, ENTRYPOINT and CMD

Write correct Dockerfiles: what each instruction does, exec versus shell form, ENTRYPOINT with CMD, USER, HEALTHCHECK and the build context.

Sign in to open the lesson

2. Layers and the build cache: fast, repeatable builds

How layers and cache keys work, how instruction order makes or breaks the cache, and how BuildKit cache mounts and pinned bases speed builds without losing reproducibility.

Sign in to open the lesson

3. Multi-stage builds and small, secure images

Use multi-stage builds to ship only what runs, choose between slim, Alpine, distroless and scratch bases, and measure what's inside an image.

Sign in to open the lesson

4. BuildKit and buildx: multi-platform images, builders and build secrets

Use buildx to build for amd64 and arm64, choose builder drivers, pass secrets and SSH keys into builds safely, and add SBOM and provenance attestations.

Sign in to open the lesson

5. Language recipes: Node.js, Python, Java, Go and .NET in production

Apply the same production pattern to the five most common stacks: dependency caching, multi-stage builds, non-root users, correct signals and right-sized runtimes.

Sign in to open the lesson

6. Image hygiene: tags, labels, SBOMs, registries and promotion by digest

Run images like releases: a tagging strategy, OCI labels, SBOMs and provenance, registry choice and retention, and promoting the same digest from test to production.

Sign in to open the lesson

Common questions

When is ADD right?

To unpack a local tar into the image in one step; for URLs, prefer RUN curl with a checksum, or ADD with --checksum.

What does mode=max do for cache export?

Exports cache for every stage, including intermediate ones, not just the final image's layers.

How do I debug a distroless container?

docker debug, or run a tools container sharing its namespaces: docker run --rm -it --pid=container:app --network=container:app nicolaka/netshoot.

Can I load a multi-platform image into my local docker images?

With the containerd image store enabled, yes; with the classic store, push it to a registry or load one platform.

Should I use Alpine for Node?

It works for many apps; test native modules first, and prefer slim if you hit musl issues.

Is a SHA tag enough to pin a deployment?

Pin the digest; tags can be overwritten even if your process says they won't be.