-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
apparmor failed to apply profile: write /proc/self/attr/exec: invalid argument: unknown. #1199
Comments
Same issue with Arch Linux. Output of
|
What fixed it for me was adding Based on these comments, It seems there were changes to the Linux Security Module that affected how Apparmor is applied from kernel version 5.10.13. |
@idoqo So this issue should be resolved by docker? |
The issue is resolved by changing apparmor related configuration as idoqo pointed out. I guess the only action for docker is to add a reference to this issue and fix somewhere in the docs. |
@jeduden Ok thank you :) |
linux.git/Documentation/admin-guide/LSM/index.rst mentions the following:
If my understanding is correct, % ls -l /proc/1/attr/apparmor /proc/1/attr
/proc/1/attr:
total 0
dr-xr-xr-x 2 root root 0 Jan 1 00:00 apparmor
-rw-rw-rw- 1 root root 0 Jan 1 00:00 current
-rw-rw-rw- 1 root root 0 Jan 1 00:00 exec
-rw-rw-rw- 1 root root 0 Jan 1 00:00 fscreate
-rw-rw-rw- 1 root root 0 Jan 1 00:00 keycreate
-r--r--r-- 1 root root 0 Jan 1 00:00 prev
dr-xr-xr-x 2 root root 0 Jan 1 00:00 smack
-rw-rw-rw- 1 root root 0 Jan 1 00:00 sockcreate
/proc/1/attr/apparmor:
total 0
-rw-rw-rw- 1 root root 0 Jan 1 00:00 current
-rw-rw-rw- 1 root root 0 Jan 1 00:00 exec
-r--r--r-- 1 root root 0 Jan 1 00:00 prev
I think that Docker should use |
The corresponding code is in runc, not in Docker. So further discussion should happen in runc repo opencontainers/runc#2801 PR is here: opencontainers/runc#2803 |
While we can work around this in runc, I would suggest this be reported to the Arch Linux kernel maintainers because it's a regression in their packaging (they broke another package by changing the kernel configuration). Yeah we should write to |
After install 23.0.1 on the Debian 10 docker is broken. |
Thanks so much. It helped me. |
Encountered the same issue as @IgorOhrimenko on Debian 11 and after installing Docker 23.0.1 |
I have the same issue on vanilla OS, based on ubuntu 22.10.
Just create this file and restart the system, to make sure everything is restarted, solved my problem |
I encounted the same issue on my Ubuntu 20.04 Server and |
I encoutered a similar problem after upgrading my OpenMediaVault. Error log when I run
My systeminfo
Solution:
|
I've encounter the following error in TurnKey GNU/Linux 16.1 (Debian 10/Buster) when trying to start a container. Your solution to install apparmor and reboot, worked for me. |
idem here on Armbian 23.02.2 Bullseye with Linux 5.15.93-rockchip64 on a cheap tvbox after an upgrade.
|
Restarting the docker service after installing apparmor also seems to work (on Debian 10 at least). |
Installing apparmor using pacman and then restarting, worked for me using Manjaro ARM. |
Apparmor is installed, docker and runc versions are also new enough, but the container still cannot be started. Finally, I shut down apparmor in cmdline and rebooted to start the container
append
and reboot
|
Expected behavior
docker run should be able to run the container
Actual behavior
Running
docker run hello-world
gives this errorI Installed docker using pacman package manager in manjaro.
Output of
docker version
:Output of
docker info
:The text was updated successfully, but these errors were encountered: