← All notes

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

Sources

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

Permanent ID: iil:note:99jge79m

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.},
}

Markdown

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.

All artifact files (JSON index)

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.