Docker Security
Docker AppArmor profile
On compatible enabled hosts, AppArmor constrains applications according to profiles; docker-default is for containers. Check actual enforcing mode. Verify actual enforcing state and workload association.
Formal Syntax & Structure
docker syntaxdocker
docker-default; --security-opt apparmor=PROFILEParameters & Attributes
| Name | Type | Description |
|---|---|---|
| PROFILE | string | Approved profile loaded on a compatible daemon host. |
Working Example
Example Snippetdocker
Review intended file access against active profile.