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=PROFILE

Parameters & Attributes

NameTypeDescription
PROFILEstringApproved profile loaded on a compatible daemon host.

Working Example

Example Snippetdocker
Review intended file access against active profile.
Docker Reference