Skip to content

Commit 70f2b53

Browse files
committed
docs(apparmor): add warning about profile persistence
across reboots, as `/etc/apparmor.d/containers` will not be loaded, leading to the example `nginx` container not being able to start.
1 parent 8158dfb commit 70f2b53

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

content/manuals/engine/security/apparmor.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,13 @@ profile docker-nginx flags=(attach_disconnected,mediate_deleted) {
197197

198198
You just deployed a container secured with a custom apparmor profile.
199199

200+
> [!WARNING]
201+
>
202+
> The activation of the custom AppArmor profile in `/etc/apparmor.d/containers/docker-nginx` will not persist across restarts.
203+
> After a reboot the container will fail to start, as it expects the `docker-nginx` profile to be loaded.
204+
>
205+
> Only profiles directly located in `/etc/appamor.d/` will be automatically applied in enforce mode.
206+
> For more information about the AppArmor directory structure, have a look at [Policy Layout](https://gitlab.com/apparmor/apparmor/-/wikis/Policy_Layout).
200207
201208
## Debug AppArmor
202209

0 commit comments

Comments
 (0)