Skip to content

Container security

Docker Security Audit Checklist: 39 Checks for Containers

Images, containers, volumes and the daemon socket.

Containers are a good security boundary when configured carefully and almost none at all when they are not. The difference is a handful of settings that are easy to set while debugging and never revert.

  • Read-only, safe on production
  • No agent installed
  • 10 distros auto-detected

How much of this is serious?

Severity of all 39 Docker checks, as the audit scripts rate them.

  • 13High severity33%
  • 15Medium severity38%
  • 11Low severity28%
Audits
6
Checks
39
Whole category
~73 seconds
Need root
31 of 39

The catalog

The 6 Docker audits

The daemon socket is the one to read first. Anyone who can reach it can start a privileged container that mounts the host filesystem, which is root by another name.

  1. 01Daemon & SocketDaemon socket exposure, group access, log level and rootless mode2 high, 2 medium and 4 low severity checks8 checks · ~12s3 need root
  2. 02Image VulnerabilitiesContainer image CVEs, secrets, configuration and supply-chain hygiene3 high, 3 medium and 2 low severity checks8 checks · ~16s6 need root
  3. 03Volume PermissionsDocker volume mount safety, permissions and ownership2 high, 4 medium and 1 low severity checks7 checks · ~13s7 need root
  4. 04Runtime & ResourcesSeccomp, AppArmor/SELinux and memory, CPU, PID and restart limits0 high, 3 medium and 3 low severity checks6 checks · ~10s6 need root
  5. 05Container HardeningPrivileged mode, user, capabilities, privilege escalation and mounts3 high, 1 medium and 1 low severity checks5 checks · ~10s5 need root
  6. 06Network & Supply ChainPort publishing, inter-container connectivity, secrets, updates and images3 high, 2 medium and 0 low severity checks5 checks · ~12s4 need root

What these audits cover

  • Daemon socket exposure, docker group membership, log level and rootless mode
  • Privileged containers, the user they run as, capabilities and privilege escalation
  • Volume mount safety, permissions and ownership on bind mounts
  • Image CVEs, embedded secrets, published ports and supply-chain hygiene

What they do not cover

  • Kubernetes. Pod security, RBAC and admission control are a different surface with different tooling.
  • What your application does inside the container. These audits read container configuration, not runtime behaviour.
  • Registry access control. Who can push to your registry is not visible from the host.

Keep going

Other categories

FAQ

Docker security questions

Can't find your answer? Join Discord

  • A Docker security audit should check who can reach the daemon socket, whether containers run privileged or as root, which capabilities they hold, whether resource limits are set, how volumes are mounted and with what permissions, whether published ports are wider than they need to be, and whether the images in use carry known vulnerabilities or embedded secrets.

  • Because access to /var/run/docker.sock is equivalent to root on the host. Anyone who can talk to it can start a privileged container that bind-mounts the host filesystem and read or write anything on it. That applies to every member of the docker group, and to any container the socket has been mounted into, which is a common and dangerous convenience in CI setups.

  • Yes, because it removes a layer of defence for free. If an attacker gets code execution inside a container running as root, they start as root inside that namespace, which makes any container escape or misconfigured mount far more useful to them. Running as an unprivileged user costs a line in the Dockerfile and takes that away.

  • The image audit checks image hygiene and reports what it can determine from the host: image age, embedded secrets, configuration problems and supply-chain signals. For exhaustive CVE-by-CVE scanning, pair it with a dedicated scanner such as Trivy or Grype in your build pipeline, where a vulnerable image can be caught before it ever reaches a server.

  • Not directly. These audits read the Docker daemon and containers on a host you access over SSH. Kubernetes moves that surface into pod security standards, RBAC and admission controllers, which need their own tooling. If your workloads run on a managed cluster, this category is not the right checklist.

Stop juggling tools. Start managing fleets.

PuTTY
Termius
MobaXterm
WinSCP
SecureCRT
Royal TS
Warp
CtrlOps14 tools left
Webmin
aaPanel
RunCloud
Dokploy
IP spreadsheet
bash (2)
sticky notes

One app. All your servers. No context switching. Free to start, free to leave.

Start instantly · No credit card · Cancel anytime

Your privacy preferences. We use product analytics to improve CtrlOps. Google Analytics cookies and live chat stay off until you allow them. Cookie policy