Docker AppArmor: default security profiles for containers
Answer: Docker expects to find an AppArmor policy loaded and enforced.
Default container profile
To use it, a system administrator associates an AppArmor security profile with each program.
Docker automatically generates and loads a default profile for containers named docker-default.
This profile is used on containers, not on the Docker daemon.
Docker automatically generates and loads that default profile when you run a container.
How the default is loaded
The Docker binary generates this profile in tmpfs and then loads it into the kernel.
A profile for the Docker Engine daemon exists, but it is not applied automatically to containers.
AppArmor is a Linux security module used here with Docker Engine containers.
The default profile lives in tmpfs before that kernel load.
See also
Claims
- id: C1 claim: Docker expects to find an AppArmor policy loaded and enforced. source: S1 evidence: "Docker expects to find an AppArmor policy loaded and enforced."
- id: C2 claim: This profile is used on containers, not on the Docker daemon. source: S1 evidence: "This profile is used on containers, not on the Docker daemon."
- id: C3 claim: A system administrator associates an AppArmor security profile with each program. source: S1 evidence: "To use it, a system administrator associates an AppArmor security profile with each program."
- id: C4 claim: The Docker binary generates this profile in tmpfs and then loads it into the kernel. source: S2 evidence: "The Docker binary generates this profile in
tmpfsand then loads it into the kernel."
Sources
- [S1] AppArmor security profiles for Docker. Docker, Inc.. https://docs.docker.com/engine/security/apparmor/ . License: Apache-2.0. Accessed 2026-11-24.
- [S2] AppArmor documentation (source). Docker, Inc.. https://raw.githubusercontent.com/docker/docs/main/content/manuals/engine/security/apparmor.md . License: Apache-2.0. Accessed 2026-11-24.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Docker, Inc., AppArmor security profiles for Docker; Docker, Inc., AppArmor documentation (source). Apache-2.0 (https://raw.githubusercontent.com/docker/docs/main/LICENSE). Copyright Docker, Inc. Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Docker, Inc., AppArmor security profiles for Docker; Docker, Inc., AppArmor documentation (source). Apache-2.0 (https://raw.githubusercontent.com/docker/docs/main/LICENSE). Copyright Docker, Inc.
Cite this
iinventedlight. 2026. "Docker AppArmor: default security profiles for containers." iinventedlight Library, iil:note:99jge79m, version of 2026-11-24. https://iinventedlight.com/library/notes/docker-apparmor/. License: CC-BY-4.0.
@misc{iil_note_99jge79m,
author = {{iinventedlight}},
title = {{Docker AppArmor: default security profiles for containers}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-24},
url = {https://iinventedlight.com/library/notes/docker-apparmor/},
note = {Permanent ID iil:note:99jge79m. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
Extra files beside this note
These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.
- docker-apparmor.schema.json (schema; CC-BY-4.0)
- docker-apparmor.table.json (table; CC-BY-4.0)
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/docker-apparmor.md.