How to either disable or fix Apparmor?
by berndbausch from LinuxQuestions.org on (#5AE0D)
I am running Ubuntu 16.04 on a tiny ARM v7 server (Odroid C1+). Trying to launch Docker's helloworld container, I get this error message:
Code:docker: Error response from daemon: Could not check if docker-default AppArmor profile was loaded: open /sys/kernel/security/apparmor/profiles: no such file or directory.aa-status reports
Code:$ aa-status
apparmor module is loaded.
Could not open /sys/kernel/security/apparmor/profiles: No such file or directoryIt is true that /sys/kernel/security/apparmor exists, but not /sys/kernel/security/apparmor/profiles. The only subdirectory is features.
My goal is to use Docker. I know very little about Apparmor and am not really interested in it right now.
I tried systemctl stop apparmor to switch it off, and apt install apparmor-profiles to fix it, but to now avail. I also wanted to remove the apparmor package, but this would remove snapd as a dependency, and I fear this could break something.
How can I disable Apparmor entirely, or create /sys/kernel/security/apparmor/profiles?


Code:docker: Error response from daemon: Could not check if docker-default AppArmor profile was loaded: open /sys/kernel/security/apparmor/profiles: no such file or directory.aa-status reports
Code:$ aa-status
apparmor module is loaded.
Could not open /sys/kernel/security/apparmor/profiles: No such file or directoryIt is true that /sys/kernel/security/apparmor exists, but not /sys/kernel/security/apparmor/profiles. The only subdirectory is features.
My goal is to use Docker. I know very little about Apparmor and am not really interested in it right now.
I tried systemctl stop apparmor to switch it off, and apt install apparmor-profiles to fix it, but to now avail. I also wanted to remove the apparmor package, but this would remove snapd as a dependency, and I fear this could break something.
How can I disable Apparmor entirely, or create /sys/kernel/security/apparmor/profiles?