---
source: https://iinventedlight.com/library/notes/docker-apparmor.md
title: "Docker AppArmor: default security profiles for containers"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "Apache-2.0 (Docker, Inc.); Apache-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., AppArmor security profiles for Docker; Docker, Inc., AppArmor documentation (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-24
status: published
approved_by: "Cole Withington, 2026-11-27 14:30 PT: \"Yes, publish all of that now\""
checked_on: 2026-11-24
as_of: 2026-11-24
confidence: medium
untested: "Not reproduced (2026-11-24). 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-apparmor"
tags: [docker, apparmor, security, profiles, linux]
client: Librarian
sources:
  - id: S1
    title: "AppArmor security profiles for Docker"
    publisher: Docker, Inc.
    url: https://docs.docker.com/engine/security/apparmor/
    accessed: 2026-11-24
    license: "Apache-2.0"
  - id: S2
    title: "AppArmor documentation (source)"
    publisher: Docker, Inc.
    url: https://raw.githubusercontent.com/docker/docs/main/content/manuals/engine/security/apparmor.md
    accessed: 2026-11-24
    license: "Apache-2.0"
---
# 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

- [docker-seccomp](https://iinventedlight.com/library/notes/docker-seccomp/)
- [docker-userns-remap](https://iinventedlight.com/library/notes/docker-userns-remap/)
- [docker-rootless](https://iinventedlight.com/library/notes/docker-rootless/)

## 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 `tmpfs` and 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.

---

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