Docker Hardened Images (DHI) can be customized using two approaches: the Docker Hub UI for creating organization-wide "golden images" with automatic security patching, or multi-stage Dockerfile builds for application-specific customization. The Hub UI approach automatically rebuilds custom images when base images are patched, while multi-stage builds use a standard image to install dependencies then copy only necessary artifacts to the minimal DHI base. Both methods maintain security by keeping the final image minimal and non-root, though custom layers must be scanned separately for vulnerabilities. Organizations using multi-stage builds should sign their custom images to maintain the chain of trust established by DHI's SLSA provenance.

10m read timeFrom docker.com
Post cover image
Table of contents
Customizing Docker Hardened ImagesOption 2: Multi-Stage BuildSecurity CheckA Note on Provenance: Who Signs What?Measuring Your ROI: Questions for Your TeamConclusion
510 Impressions