Skip to content

Conversation

texhnolyze
Copy link

across reboots, as /etc/apparmor.d/containers will not be loaded, leading to the example nginx container not being able to start.

Description

Following the example to set up a custom apparmor profile.
I was suprised, that the profile suggested being located in /etc/apparmor.d/containers was not automatically loaded after a reboot.
This is because apparmor only loads files directly located in /etc/apparmor.d/* or known folder locations according to the Policy Layout.

This led to my container not being able to start with error:

Failed starting container: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: unable to apply apparmor profile: apparmor failed to apply profile: write /proc/thread-self/attr/apparmor/exec: no such file or directory: unknown

For this reason, I've added a warning section in the docs.

Reviews

  • Technical review
  • Editorial review
  • Product review

@github-actions github-actions bot added area/engine Issue affects Docker engine/daemon area/security labels Sep 9, 2025
Copy link

netlify bot commented Sep 9, 2025

Deploy Preview for docsdocker ready!

Name Link
🔨 Latest commit 70f2b53
🔍 Latest deploy log https://app.netlify.com/projects/docsdocker/deploys/68c6d389a777f800080baa18
😎 Deploy Preview https://deploy-preview-23381--docsdocker.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

across reboots, as `/etc/apparmor.d/containers` will not be loaded, leading to the example `nginx` container not being able to start.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/engine Issue affects Docker engine/daemon area/security
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant