Docker publishes guidance on multi-stage builds and base image selection
Article Content
- •Docker's guidance recommends multi-stage builds to produce smaller final images that exclude build tools.
- •Reusable common stages let Docker build shared components once, improving memory use and load times.
- •Docker recommends base images from trusted sources, kept small, such as Docker Official Images.
- •The multi-stage guidance shows copying a single binary into a scratch image using COPY --from.
- •Neither article reports a vulnerability, attack, or security incident.
Two Docker documentation pages published 2026-11-25 describe best practices for Dockerfile construction. The build best-practices page recommends multi-stage builds to reduce final image size and allow parallel build steps. It also recommends reusable common stages so Docker builds shared components only once. For base images, it advises choosing images from trusted sources, keeping them small, and using Docker Official Images. The multi-stage guidance page explains using multiple FROM statements so that only needed artifacts are copied into the final image. It gives an example of a Go binary copied into a scratch-based image, leaving build tools out of the result. The page also describes naming build stages and stopping a build at a specific named stage. Neither article describes a security incident, vulnerability, or threat actor. The source text is truncated in both cases.
Ask AI about this cluster
Answers cite the sources they use
Timeline
More articles in this cluster (2)
Common questions
Does this guidance address a security vulnerability?
How does a multi-stage build reduce image contents?
What base image does Docker recommend?
Continue Reading
CVE-2026-123890: Auth bypass in VMware vCenter exploited by Armory Castle before patch CVE-2026-123890, a flaw in VMware vCenter Server rated CVSS 9.8, allows an unauthenticated remote attacker to obtain an administrator session on the platform. According to the Google Threat Intelligence Group, the flaw was exploited by the espionage group Armory Castle (formerly UNC5221), which has suspected China…