Best lists

Best Docker Image for Security in 2026: 8 Hardened Base Images Compared

The safest Docker image is usually the smallest one with signed provenance and a fast patch promise. Here are eight hardened options compared on CVEs, size, SBOMs and price.

Cysoro Security TeamPublished · 10 min read
FROM hardened:1.0USER 10001COPY --chown app .RUN scan: 0 criticalSigned + SBOMSLSA Level 3 provenanceNear-zero known CVEsBEST LISTSSecureDocker imagesMinimal, signed, patched fast.
Quick answer

The best Docker image for security for most teams in 2026 is Docker Hardened Images, because the full catalog is free under Apache 2.0, images are minimal with near-zero known CVEs, and every image ships with a signed SBOM, SLSA Build Level 3 provenance and VEX data. Chainguard Images are the strongest paid alternative, while Google Distroless and Alpine are the best free minimal bases for compiled and general workloads.

Key takeaways

  • Docker Hardened Images are the best default: free, minimal, near-zero CVEs, with signed SBOMs and SLSA Level 3 provenance.
  • Chainguard Images offer the lowest live CVE counts for teams that can pay, starting at $19,000 for a team of 10.
  • A secure image is not enough on its own: pin by digest, run as non-root, scan in CI and drop unneeded capabilities.

Most Docker security problems start before your code runs. A full base image ships hundreds of packages you never use, and every one of them can carry a vulnerability. Choosing a hardened, minimal image removes most of that risk at the source.

How did we choose the best Docker images for security?

We ranked images on five criteria: known CVE count, minimal package surface, signed provenance and SBOMs, patch speed and SLA, and how easy the image is to adopt without rewriting your app.

We favored images with verifiable SBOMs, SLSA Build Level 3 provenance and VEX data, because those let you prove what is inside an image and which CVEs actually matter. We also favored free community catalogs where they genuinely exist, and we marked quote-only products as quote-only instead of guessing a price.

  • Minimal surface: fewer packages, no shell or package manager where possible.
  • Patching: continuous rebuilds and a clear fix commitment for critical CVEs.
  • Provenance: signed images, SBOMs and SLSA attestations you can verify.
  • Compatibility: glibc or musl, debugging options and language support.
  • Price transparency: published prices where they exist, quote-only where they do not.

Which Docker image is best for security?

Docker Hardened Images are the best overall choice for most teams, Chainguard Images are the best paid option, and Google Distroless is the best free option for compiled apps. The table below summarizes the trade-offs.

ImageBest forFree optionStarting priceKey security feature
Docker Hardened ImagesMost teamsFull catalog, Apache 2.0Free; Select from $5,000 per repositoryNear-zero CVEs, signed SBOM, SLSA L3
Chainguard ImagesSecurity-first teams5 images freeCatalog from $19,000 for a team of 10Wolfi, lowest live CVEs, 7-day critical fix SLA
Google DistrolessCompiled appsFree, Apache 2.0FreeNo shell or package manager
Alpine LinuxTiny general imagesFreeFreeAbout 5 MB, minimal packages
Debian Slimglibc apps, easy debuggingFreeFreeDebian packages, shell included
Red Hat UBIEnterprise and RHEL shopsFreeFreeRHEL-compatible, supported packages
WolfiDIY hardened buildsFree, Apache 2.0FreeMinimal, glibc, fast patching
Bitnami Secure ImagesPackaged appsLimited latest-tag imagesQuote onlyHardened app images, signed SBOMs

Prices are as published in November 2026. Always confirm the current figure on the vendor site before you buy, because hardened-image pricing has changed before.

Smaller image, smaller attack surfaceFull imagehundreds of packages, shell, toolsSlim / Alpinetens of packages, small shellDistrolessruntime only, no shellHardened catalogminimal, signed, patched fastBar length shows relative package surface, not exact size. Illustration by Cysoro.
Full images carry the most packages an attacker can use. Hardened and distroless images strip them away. Illustration by Cysoro.

The best Docker images for security in 2026

Each entry below explains what the image is, who should use it, and what to watch out for. Start with the first two if you want a decision fast.

1. Docker Hardened Images — best overall

Docker Hardened Images (DHI) are minimal, secure and production-ready container images maintained by Docker, built on Alpine and Debian with glibc and musl variants. They are designed to reduce vulnerabilities and simplify compliance.

  • Near-zero CVEs: continuously scanned and patched to maintain minimal known vulnerabilities, with distroless variants that reduce attack surface by up to 95% according to Docker.
  • Verifiable provenance: signed SBOMs in CycloneDX and SPDX formats, SLSA Build Level 3 provenance and VEX statements on every image.
  • Non-root by default: containers run as non-root, and system packages are built from source and cryptographically signed.
  • Compliance variants: FIPS-enabled and STIG-ready variants are available on paid tiers.

Pros: full catalog free under Apache 2.0; familiar Alpine and Debian bases; Helm charts included. Cons: the 7-day critical CVE fix SLA and FIPS/STIG variants need a paid tier.

Pricing: Community is free. Select starts at $5,000 per repository and adds the critical CVE fix SLA within 7 days. Enterprise is by quote. Pick it if: you want the best balance of security, familiarity and price.

2. Chainguard Images — best paid hardened catalog

Chainguard Images are minimal images built from source on Wolfi, a Linux distribution designed for containers. They are known for very low live CVE counts and fast patching.

  • Low CVE counts: independent comparisons repeatedly find Chainguard images with zero or near-zero high-severity CVEs where Debian or Alpine equivalents still have some.
  • Fast fixes: Chainguard commits to fixing critical CVEs within 7 days and other severities within 14 days for customers with an order.
  • Signed and attested: images ship with SBOMs and SLSA attestations.
  • Wide catalog: base images, language runtimes, databases and application images.

Pros: strongest CVE posture in most comparisons; good for compliance. Cons: moving to Wolfi usually needs a one-time Dockerfile refactor, since package names and commands differ from Debian and Alpine.

Pricing: five images free; the full catalog starts at $19,000 for a team of 10, with per-image pricing by quote. Free images are not covered by the CVE remediation SLA. Pick it if: security is your top requirement and you can pay for it.

3. Google Distroless — best free option for compiled apps

Google Distroless images contain only your application and its runtime dependencies. There is no shell, no package manager and no extra operating system tools inside the image.

  • Minimal surface: typically only a few megabytes for static binaries, with no shell for an attacker to use.
  • Language variants: static, base, Java, Node.js and Python images, including non-root variants that run as user 65532.
  • Free and open: published under Apache 2.0, with no paid tier.

Pros: tiny, free, and very hard to exploit after a breach. Cons: no shell makes debugging inside a running container difficult, and patches can arrive more slowly than in a commercial hardened catalog.

Pricing: free. Pick it if: you ship Go, Rust, Java or Node.js apps and want maximum minimalism at no cost.

4. Alpine Linux — best tiny general-purpose base

Alpine Linux is a small, security-oriented distribution built on musl libc and BusyBox. An Alpine base image is about 5 MB, compared with well over 100 MB for a full Debian image.

  • Tiny: small download, fast startup and a small package set to patch.
  • Shell included: BusyBox gives you a shell for debugging, unlike Distroless.
  • Wide use: many official images offer an Alpine variant, such as node:22-alpine and python:3.12-alpine.

Pros: free, familiar and very small. Cons: musl can break Python wheels and native libraries that expect glibc, so test your app before switching.

Pricing: free. Pick it if: you want a small, debuggable base and your dependencies work with musl.

5. Debian Slim — best pragmatic default

Debian Slim images strip non-essential packages from Debian while keeping glibc, apt and a normal shell. They are typically 30 to 80 MB, far smaller than full Debian images.

  • glibc compatibility: works with native dependencies and Python wheels that fail on Alpine.
  • Debuggable: you can install tools temporarily and inspect a running container.
  • Familiar: Debian package names and commands that most teams already know.

Pros: the easiest secure-enough choice for many apps. Cons: larger and with more CVEs than Alpine or Distroless, so you must scan and rebuild regularly.

Pricing: free. Pick it if: Alpine breaks your build and you need a practical, compatible base.

6. Red Hat Universal Base Image — best for enterprise and RHEL shops

Red Hat Universal Base Images (UBI) are RHEL-compatible images you can use freely, even without a Red Hat subscription. They are a good fit when your organization already standardizes on Red Hat.

  • Supported packages: packages come from Red Hat's supported set, with security errata.
  • Variants: standard, minimal and micro images, so you can trade size against tooling.
  • Compliance: fits teams that need RHEL compatibility for audits and support contracts.

Pros: enterprise-grade support path; familiar to RHEL teams. Cons: larger than Alpine or Distroless, and the smallest micro variant has no package manager.

Pricing: free to use. Pick it if: you run Red Hat in production or need RHEL compatibility.

7. Wolfi — best DIY hardened base

Wolfi is the minimal Linux distribution behind Chainguard Images, published as open source under Apache 2.0. You can build your own Wolfi-based images without paying Chainguard.

  • Minimal and glibc-based: small images that still work with glibc applications.
  • Fast patching: Wolfi is designed for rapid security updates.
  • Apk packaging: packages are installed with apk, similar to Alpine.

Pros: free, modern and very low in CVEs. Cons: you take on patching and maintenance yourself, and the ecosystem is smaller than Debian or Alpine.

Pricing: free. Pick it if: you want Chainguard-style minimalism and are happy to maintain your own images.

8. Bitnami Secure Images — best hardened packaged apps

Bitnami Secure Images are hardened versions of popular packaged applications, such as databases and web servers, sold by Broadcom. They are designed as drop-in replacements for community Bitnami images.

  • App coverage: ready-made images for common applications, not just base images.
  • Hardening: minimal packages, signed SBOMs and vulnerability scanning.
  • Enterprise support: sold through Broadcom sales with support options.

Pros: fastest path if you already run Bitnami images. Cons: no published list price, and the free community catalog was retired, so migration needs a sales conversation.

Pricing: quote only. Pick it if: you already depend on Bitnami packaged apps and want a supported hardened version.

How do you harden a Docker image beyond the base?

Choosing a secure base is step one. These five habits matter just as much, and they work with any image on the list above.

Five habits that harden any Docker image1. Pin by digestFROM nginx:1.27-alpine@sha256:…2. Multi-stage buildbuild tools stay out of the final image3. Run as non-rootUSER 10001, COPY --chown4. Scan in CI and fail on criticalsTrivy or Grype, exit-code 15. Sign and verifycosign, digest pinning, SBOM
Hardening habits that matter as much as the base image you choose. Illustration by Cysoro.
  1. Pin by digest. Use FROM nginx:1.27-alpine@sha256:… so you always run the exact image you tested.
  2. Use multi-stage builds. Build with compilers and tools in one stage, then copy only the finished binary into a minimal final image.
  3. Run as non-root. Create a user, use COPY --chown, and set a numeric USER so Kubernetes can verify it.
  4. Scan in CI. Run Trivy or Grype on every build and fail the build on critical vulnerabilities.
  5. Never bake in secrets. Use BuildKit secret mounts, not ARG or ENV, because secrets in layers can be recovered from image history.

At runtime, add --read-only, --cap-drop=ALL and --security-opt=no-new-privileges where your app allows it. A hardened image plus a locked-down runtime is far stronger than either alone.

What should you scan for in a Docker image?

Scan for known CVEs, misconfigurations, secrets and malware. Trivy covers CVEs, misconfigurations and secrets in one tool, while Grype focuses on vulnerability matching against SBOMs.

Do not chase a zero CVE count blindly. Use VEX data to see which CVEs actually affect your image, and prioritize fixable critical and high-severity issues first. An image with one unfixable low-severity CVE in an unused library is less risky than an image with a fixable critical CVE in a library your app loads.

Scan the final image, not just the base. Your application dependencies often add more vulnerabilities than the base image itself, especially in Node.js and Python apps.

Docker publishes full, unsuppressed CVE visibility for its hardened images, with SBOMs and VEX data for every image, as described in Docker's Hardened Images documentation.

Trivy and Grype both work well for this job. The Docker Hub hardened images catalog shows how Grype reports CVEs, SBOMs and secrets scans for a hardened image.

For a wider starting point, our small business cybersecurity checklist covers patching, backups and device security alongside container hygiene.

How do you choose the right secure Docker image?

Match the image to your app, not to a ranking. A static Go binary belongs in Distroless or scratch, a Python app with native wheels usually needs Debian Slim or Wolfi, and a regulated workload may need a paid catalog with an SLA.

  • Static compiled app: Distroless static or scratch.
  • General web app, free: Docker Hardened Images or Alpine.
  • glibc app with native deps: Docker Hardened Images (Debian variant), Debian Slim or Wolfi.
  • Regulated or audited workload: Docker Hardened Images Select or Chainguard, for the SLA and FIPS/STIG variants.
  • RHEL shop: Red Hat UBI.

Try the switch on one service first. Build it, scan it, run your tests, and check that logging, health checks and debugging still work before you roll it out everywhere.

Once the image is hardened, check the site it serves with our free SSL checker.

What mistakes should you avoid?

The most common mistake is picking a minimal image and then adding back everything you removed. Installing curl, bash and a package manager into a Distroless-style image defeats the point.

Other mistakes include using latest in production, running as root because it is easier, and scanning once at build time but never rebuilding. Base images go stale fast: schedule rebuilds weekly, or whenever a critical CVE is published for a package you use.

Finally, do not trust a vendor's "zero CVE" claim without checking the SBOM and VEX data yourself. Different scanners count differently, and some images hide CVEs instead of fixing them. Docker Hardened Images publish full, unsuppressed CVE visibility, which is the honest approach to look for.

The bottom line

For most teams in 2026, Docker Hardened Images are the best Docker image for security: free, minimal, near-zero in known CVEs, and backed by signed SBOMs and SLSA Level 3 provenance. Chainguard is the best paid upgrade, and Distroless is the best free choice for compiled apps.

Whichever base you pick, pin it by digest, run as non-root, scan every build and rebuild often. You can check the public-facing side of your own deployment, including TLS and security headers, with our free security headers checker.

Frequently asked questions

What is the most secure Docker base image?

For most teams, Docker Hardened Images are the most secure practical choice because they are minimal, continuously patched, and ship with signed SBOMs and SLSA Level 3 provenance. Chainguard Images are a strong paid alternative with very low live CVE counts.

Is Alpine more secure than Debian Slim?

Alpine is smaller and usually has fewer packages, so it has a smaller attack surface. Debian Slim is easier when your app needs glibc or Debian packages. Security depends more on patching, pinning and scanning than on the distribution alone.

Are Docker Hardened Images free?

Yes. The Docker Hardened Images Community catalog is free under Apache 2.0, including for production use. Paid Select, from $5,000 per repository, adds a 7-day critical CVE fix SLA and FIPS and STIG variants.

What is a distroless image?

A distroless image contains only your application and its runtime dependencies, with no shell, package manager or extra operating system tools. That removes the tools an attacker would use after exploiting your app, but it makes debugging inside the container harder.

Should I pin Docker images by digest?

Yes. Pinning by digest guarantees you run exactly the image you tested, instead of a tag that may have changed. Combine digest pinning with scheduled rebuilds so you still receive security patches.

Does scanning an image make it secure?

No. Scanning finds known vulnerabilities, but it does not fix them. You still need a minimal base, prompt patching, non-root execution, signed images and runtime controls such as read-only filesystems and dropped capabilities.

Is Chainguard worth the price?

It can be, for teams with a strict security or compliance mandate and many services. The catalog starts at $19,000 for a team of 10, with five images free. Smaller teams often get most of the benefit from Docker Hardened Images or Distroless at no cost.

Can I use a hardened image with Kubernetes?

Yes. Hardened images work like any other OCI image. Use a numeric non-root user so Kubernetes runAsNonRoot can verify it, and add read-only root filesystems and capability drops in your pod security settings.

Sources

  1. Docker — Docker Hardened Images
  2. Docker Hub — Hardened Images catalog: Grype
  3. OSSeva — Docker Hardened Images Pricing vs Chainguard and Bitnami
  4. RapidFort — Chainguard Alternatives (2026)
  5. CRACI — Chainguard Alternatives: 10 Hardened Image and Build Options
Written & fact-checked byCysoro Security Team

The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

Checked against Docker's Hardened Images documentation and published pricing comparisons for Docker, Chainguard and Bitnami Secure Images.

How we write and fact-check →

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free