Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Containers
  3. Docker bench security

Docker bench security

Apache-2.0Shellv1.6.1

A script that checks for dozens of common best-practices around deploying Docker containers in production.

GitHubGitHub
9.7k stars1.0k forks0 contributors

What is Docker bench security?

Docker Bench for Security is a script that automates security checks for Docker containers and hosts based on the CIS Docker Benchmark. It scans for dozens of common best-practices and misconfigurations in production deployments, helping teams ensure their Docker environments are secure and compliant. The tool provides both command-line and containerized execution options for flexible integration into workflows.

Target Audience

DevOps engineers, security professionals, and system administrators responsible for deploying and maintaining Docker containers in production environments. It is particularly useful for teams needing to comply with security standards or perform regular security audits.

Value Proposition

Developers choose Docker Bench for Security because it provides a free, open-source alternative to commercial security scanners, with direct alignment to the industry-standard CIS benchmarks. Its simplicity, automation, and community-driven updates make it a practical tool for continuous security assessment.

Overview

The Docker Bench for Security is a script that checks for dozens of common best-practices around deploying Docker containers in production.

Use Cases

Best For

  • Auditing Docker host configurations against CIS benchmarks
  • Checking production container deployments for security misconfigurations
  • Integrating security scanning into CI/CD pipelines for Dockerized applications
  • Preparing for compliance audits (e.g., SOC2, HIPAA) related to container security
  • Educating teams on Docker security best practices through automated checks
  • Self-hosting security assessments without relying on SaaS tools

Not Ideal For

  • Environments using container runtimes other than Docker, such as Podman or containerd without Docker Engine
  • Teams requiring real-time, automated remediation instead of periodic security scans
  • Organizations that prefer pre-built, up-to-date container images without manual compilation
  • Projects with highly customized Docker setups where CIS benchmarks may not directly apply

Pros & Cons

Pros

Automated CIS Compliance

Runs automated tests based on the CIS Docker Benchmark v1.6.0, ensuring industry-standard security checks without manual configuration, as highlighted in the key features.

Flexible Execution Options

Can be run directly from the host or as a Docker container for isolated testing, with detailed commands provided for both methods in the README, including Docker Compose support.

Customizable Check Selection

Supports including or excluding specific checks by ID or category (e.g., using -c for container_images), allowing targeted assessments as described in the options section.

Detailed Logging Output

Generates JSON and plain-text logs with options to disable colors or remediation printouts, facilitating integration into automated workflows and audit trails.

Cons

Outdated Official Image

The README admits the docker/docker-bench-security image is out-of-date and requires manual building, referencing issue #405, which adds setup overhead for users.

Platform-Specific Setup Complexity

Running the tool requires adjusting volume mounts and commands based on the OS, such as different examples for Ubuntu and macOS, making deployment error-prone.

Limited to Docker Ecosystem

Focuses solely on Docker hosts and containers, so it's not applicable for other container runtimes like Podman, reducing its utility in diverse environments.

Static Scan Limitations

Provides point-in-time assessments without built-in continuous monitoring or remediation, which may not catch dynamic security issues in production.

Frequently Asked Questions

Quick Stats

Stars9,675
Forks1,036
Contributors0
Open Issues20
Last commit1 month ago
CreatedSince 2015

Tags

#container-security#audit#security#devsecops#automated-testing#docker#compliance#cis-benchmark#self-assessment

Built With

B
Bash
D
Docker Compose
D
Docker

Included in

Docker35.8kContainers2.0kDevSecOps1.7k
Auto-fetched 15 hours ago

Related Projects

trivytrivy

Find vulnerabilities, misconfigurations, secrets, SBOM in containers, Kubernetes, code repositories, clouds and more

Stars37,051
Forks552
Last commit1 day ago
gvisorgvisor

Application Kernel for Containers

Stars18,847
Forks1,764
Last commit16 hours ago
GrypeGrype

A vulnerability scanner for container images and filesystems

Stars12,629
Forks836
Last commit1 day ago
GrypeGrype

A vulnerability scanner for container images and filesystems

Stars12,629
Forks836
Last commit1 day ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub