hardening-docker-containers-for-production

Featured

Hardening Docker containers for production involves applying security best practices aligned with CIS Docker Benchmark v1.8.0 to minimize attack surface, prevent privilege escalation, and enforce leas

DevOps & Infrastructure 36,355 stars 4443 forks Updated 2 months ago Apache-2.0

Install

View on GitHub

Quality Score: 94/100

Stars 20%
100
Recency 20%
75
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Hardening Docker Containers for Production ## Overview Hardening Docker containers for production involves applying security best practices aligned with CIS Docker Benchmark v1.8.0 to minimize attack surface, prevent privilege escalation, and enforce least-privilege principles across Docker daemon, images, containers, and runtime configurations. ## When to Use - When deploying or configuring hardening docker containers for production capabilities in your environment - When establishing security controls aligned to compliance requirements - When building or improving security architecture for this domain - When conducting security assessments that require this implementation ## Prerequisites - Docker Engine 24.0+ installed - Docker Compose v2 - Linux host with kernel 5.10+ - Root or sudo access on Docker host - docker-bench-security tool - Hadolint for Dockerfile linting - Dockle for image linting ## Core Concepts ### CIS Docker Benchmark Sections 1. **Host Configuration** - Audit Docker daemon files, restrict access to /var/run/docker.sock 2. **Docker Daemon Configuration** - Enable TLS, restrict inter-container communication, configure logging 3. **Docker Daemon Configuration Files** - Set ownership and permissions on daemon.json 4. **Container Images and Build File** - Use trusted base images, scan for vulnerabilities, multi-stage builds 5. **Container Runtime** - Drop capabilities, read-only rootfs, restrict syscalls 6. **Docker Security Operations** - Monitor,...

Details

Author
mukul975
Repository
mukul975/Anthropic-Cybersecurity-Skills
Created
8 months ago
Last Updated
2 months ago
Language
Python
License
Apache-2.0

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category