---
title: "From Security Blocked to Prod Ready: ClickHouse on Docker Hardened Images"
description: "Security scanners block the standard ClickHouse image because its Ubuntu 22.04 base ships unused packages carrying unpatched CVEs, such as wget (CVE-2021-31879) and tar."
url: "https://swe.quest/articles/from-security-blocked-to-prod-ready-clickhouse-on-docker-hardened-images-fbdddd6267212370"
canonical: "https://www.docker.com/blog/from-security-blocked-to-prod-ready-clickhouse-on-docker-hardened-images/"
source: "Docker"
published: "2026-04-30"
difficulty: "medium"
kind: "How-to"
reading_minutes: 11
tags: ["containers","supply-chain-security","kubernetes","security"]
---

# From Security Blocked to Prod Ready: ClickHouse on Docker Hardened Images

A post on [Docker](https://swe.quest/sources/docker.md), published 2026-04-30, 11 min read, How-to. Original: [https://www.docker.com/blog/from-security-blocked-to-prod-ready-clickhouse-on-docker-hardened-images/](https://www.docker.com/blog/from-security-blocked-to-prod-ready-clickhouse-on-docker-hardened-images/)

## Summary

Security scanners block the standard ClickHouse image because its Ubuntu 22.04 base ships unused packages carrying unpatched CVEs, such as wget (CVE-2021-31879) and tar. Docker Hardened Images remove apt, wget, curl and other unneeded packages. They run as non-root uid 65532, ship SLSA Level 3 provenance with VEX attestations, and come in dev and runtime variants. A Docker Scout comparison shows all medium-severity findings eliminated, with only unfixable low findings in glibc and openssl remaining. The guide covers docker run setup, custom XML config, Kubernetes fsGroup settings, a smaller metrics exporter (10.3 MB vs 29.4 MB), and debugging with docker debug in place of in-container tools.

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)
- [Kubernetes](https://swe.quest/tags/kubernetes.md) (Infrastructure)
- [Security](https://swe.quest/tags/security.md) (Security)

## Prerequisites

- Docker containers ([easy posts on Containers](https://swe.quest/tags/containers.md?difficulty=easy))
- Kubernetes pod specs ([easy posts on Kubernetes](https://swe.quest/tags/kubernetes.md?difficulty=easy))
- container vulnerability scanning

## Keywords

Docker Hardened Images, ClickHouse, Docker Scout, SLSA, VEX, docker debug, Langfuse

## Related posts

- [ClickHouse on Docker Hardened Images](https://swe.quest/articles/clickhouse-on-docker-hardened-images-5b8d5f1286faba04.md): ClickHouse · 2026-07-10 · Medium · 5 min read · Supply chain security, Containers, Security
  ClickHouse server, Keeper, the Kubernetes Operator with its Helm chart, and the metrics exporter are now in Docker's Hardened Images catalog.
- [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.
- [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.
- [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.
- [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.

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)
