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.
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.
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.
Write correct Dockerfiles: what each instruction does, exec versus shell form, ENTRYPOINT with CMD, USER, HEALTHCHECK and the build context.
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.
Use multi-stage builds to ship only what runs, choose between slim, Alpine, distroless and scratch bases, and measure what's inside an image.
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.
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.
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.
To unpack a local tar into the image in one step; for URLs, prefer RUN curl with a checksum, or ADD with --checksum.
Exports cache for every stage, including intermediate ones, not just the final image's layers.
docker debug, or run a tools container sharing its namespaces: docker run --rm -it --pid=container:app --network=container:app nicolaka/netshoot.
With the containerd image store enabled, yes; with the classic store, push it to a registry or load one platform.
It works for many apps; test native modules first, and prefer slim if you hit musl issues.
Pin the digest; tags can be overwritten even if your process says they won't be.