Docker installed on arm - how to fix the apparmor error

Just posting a fix for others.

If you install docker on manjaro arm (in my case mate for rockpro64) then you might be missing apparmor. When you then try to spin up a container you’ll get this error

Error response from daemon: 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/self/attr/apparmor/exec: no such file or directory: unknown

at the github issue link below the solution was found and is simply to install the missing apparmor package and reboot.

1 Like