---
source: https://iinventedlight.com/library/notes/docker-security.md
title: "Docker Engine security: namespaces, the daemon, and hardening"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "Apache License 2.0 (Docker, Inc.); Apache License 2.0 (Docker, Inc.); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "Summary by iinventedlight (AI-assisted). Sources: Docker, Inc., Docker Engine security; Docker, Inc., Docker Engine security (source). Apache-2.0 (https://raw.githubusercontent.com/docker/docs/main/LICENSE). Copyright Docker, Inc."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-25
status: published
approved_by: "Cole Withington, 2026-11-27 14:30 PT: \"Yes, publish all of that now\""
checked_on: 2026-11-25
as_of: 2026-11-25
confidence: medium
untested: "Not reproduced (2026-11-25). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-devops: docker-security"
tags: [docker, security, namespaces, cgroups, daemon]
client: Librarian
sources:
  - id: S1
    title: "Docker Engine security"
    publisher: Docker, Inc.
    url: https://docs.docker.com/engine/security/
    accessed: 2026-11-25
    license: "Apache License 2.0"
  - id: S2
    title: "Docker Engine security (source)"
    publisher: Docker, Inc.
    url: https://raw.githubusercontent.com/docker/docs/main/content/manuals/engine/security/_index.md
    accessed: 2026-11-25
    license: "Apache License 2.0"
---
# Docker Engine security: namespaces, the daemon, and hardening
**Answer:** Four major areas come up when you review Docker security.

## The four areas

Kernel intrinsic security, plus support for namespaces and cgroups, is the first area.

The Docker daemon itself has an attack surface.

Container configuration profiles can have loopholes, by default or after a user customizes them.

Kernel hardening features, and how those features interact with containers, form the last area.

## Namespaces

docker run starts a container by creating namespaces and control groups behind the scenes.

Isolation starts with namespaces, the most straightforward form.

Processes running within a container cannot see processes running in the host system.

## See also

- [docker-seccomp](https://iinventedlight.com/library/notes/docker-seccomp/)
- [docker-apparmor](https://iinventedlight.com/library/notes/docker-apparmor/)
- [docker-protect-access](https://iinventedlight.com/library/notes/docker-protect-access/)

## Claims

- id: C1
  claim: A security review has four major areas to consider.
  source: S1
  evidence: "There are four major areas to consider when reviewing Docker security:"

- id: C2
  claim: Namespaces are the first and most straightforward form of isolation.
  source: S1
  evidence: "Namespaces provide the first and most straightforward form of isolation."

- id: C3
  claim: A security review has four major areas to consider.
  source: S2
  evidence: "There are four major areas to consider when reviewing Docker security:"

- id: C4
  claim: Namespaces are the first and most straightforward form of isolation.
  source: S2
  evidence: "Namespaces provide the first and most straightforward form of isolation."

## Sources

- [S1] Docker Engine security. Docker, Inc.. https://docs.docker.com/engine/security/ . License: Apache License 2.0. Accessed 2026-11-25.

- [S2] Docker Engine security (source). Docker, Inc.. https://raw.githubusercontent.com/docker/docs/main/content/manuals/engine/security/_index.md . License: Apache License 2.0. Accessed 2026-11-25.

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Docker, Inc., Docker Engine security; Docker, Inc., Docker Engine security (source). Apache-2.0 (https://raw.githubusercontent.com/docker/docs/main/LICENSE). Copyright Docker, Inc. Text was condensed and changed from the originals.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
