---
title: "Making the Most of Your Docker Hardened Images Enterprise Trial – Part 3"
description: "Docker Hardened Images (DHI) ship without package managers, shells or utilities, so adding agents, CA certificates or libraries needs one of two patterns."
url: "https://swe.quest/articles/making-the-most-of-your-docker-hardened-images-enterprise-trial-part-3-074fb74ac78adf47"
canonical: "https://www.docker.com/blog/making-the-most-of-your-docker-hardened-images-enterprise-trial-part-3/"
source: "Docker"
published: "2026-01-25"
difficulty: "medium"
kind: "How-to"
reading_minutes: 8
tags: ["containers","supply-chain-security","security"]
---

# Making the Most of Your Docker Hardened Images Enterprise Trial – Part 3

A post on [Docker](https://swe.quest/sources/docker.md), published 2026-01-25, 8 min read, How-to. Original: [https://www.docker.com/blog/making-the-most-of-your-docker-hardened-images-enterprise-trial-part-3/](https://www.docker.com/blog/making-the-most-of-your-docker-hardened-images-enterprise-trial-part-3/)

## Summary

Docker Hardened Images (DHI) ship without package managers, shells or utilities, so adding agents, CA certificates or libraries needs one of two patterns. Platform teams can build "golden images" through the Docker Hub UI, which adds OS packages or OCI artifacts and automatically rebuilds and re-signs the image when the base DHI is patched. Developers can use a multi-stage Dockerfile: install dependencies (here the Datadog dd-trace library) in a Debian builder stage, then copy only the artifacts into the DHI runtime, setting NODE\_PATH and using exec-form CMD. Scanning the result with Docker Scout found a high-severity CVE in a transitive lodash.pick dependency, a reminder that hardened bases do not protect added code, and locally built images should be signed with Cosign in CI because the original DHI signature no longer applies.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Containers](https://swe.quest/tags/containers.md) (Infrastructure)
- [Supply chain security](https://swe.quest/tags/supply-chain-security.md) (Security)
- [Security](https://swe.quest/tags/security.md) (Security)

## Prerequisites

- Dockerfile basics
- multi-stage Docker builds ([easy posts on Containers](https://swe.quest/tags/containers.md?difficulty=easy))
- container vulnerability scanning

## Keywords

Docker Hardened Images, Docker Hub, Docker Scout, dd-trace, SLSA, Cosign, Node.js

## Related posts

- [Making the Most of Your Docker Hardened Images Enterprise Trial – Part 1](https://swe.quest/articles/making-the-most-of-your-docker-hardened-images-enterprise-trial-part-1-61a4db14eac1477b.md): Docker · 2025-11-14 · Medium · 10 min read · Containers, Supply chain security, Security
  Docker Hardened Images (DHI) strip base images down to the minimum runtime, removing package managers, shells and utilities while keeping distro compatibility.
- [Docker Hardened Images enhanced vulnerability scanning with Docker and Aikido](https://swe.quest/articles/docker-hardened-images-enhanced-vulnerability-scanning-with-docker-and-aikido-d49b93c672989876.md): Docker · 2026-06-11 · Medium · 4 min read · Supply chain security, Containers, Security
  Aikido now scans Docker Hardened Images (DHI) using Docker's signed OpenVEX attestations, automatically suppressing CVEs that Docker has marked fixed or not affected so triage queues show only findings that actually apply.
- [Secure by Design: A Proactive Testing Approach with Testcontainers, Docker Scout, and Hardened Images](https://swe.quest/articles/secure-by-design-a-proactive-testing-approach-with-testcontainers-docker-scout-3bd5cb7e139bb4be.md): Docker · 2025-08-28 · Medium · 10 min read · Containers, Supply chain security, Testing, TypeScript
  Swapping a Node.js API's node:22-slim base image for a Docker Hardened Image (distroless dhi-node:22) eliminated all critical and high CVEs flagged by Docker Scout, including Debian 12's CVE-2025-6020, while avoiding the musl compatibility risk of switching to Alpine.
- [Hardened Images Are Free. Now What?](https://swe.quest/articles/hardened-images-are-free-now-what-129617cf36f8913b.md): Docker · 2026-02-10 · Medium · 6 min read · Supply chain security, Containers, Security
  Docker Hardened Images (DHI), now free across 1,000+ images, establish a security "waterline": Docker owns vulnerability remediation for the base layers it hardens, while teams own application code and dependencies above it.
- [CNCF Score project improved its security posture by joining the Docker-Sponsored Open Source Program](https://swe.quest/articles/cncf-score-project-improved-its-security-posture-by-joining-the-docker-203499a569bdd49d.md): Docker · 2026-11-05 · Medium · 8 min read · Supply chain security, Containers, CI/CD, Open source
  Score, a CNCF Sandbox project, hardened its container image supply chain by moving images to Docker Hub, adding Docker Scout PR comparisons that report CVEs, package changes and policy compliance, and switching base images to Docker Hardened Images.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
