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
docker: Error response from daemon: OCI runtime create failed: container_linux.go:349: starting container process caused "process_linux.go:449: container init caused \"apply apparmor profile: apparmor failed to apply profile: write /proc/self/attr/exec: permission denied\"" #1129
Comments
Sorry, this looks like a problem with your custom apparmor profile. You can disable the profile that Docker applies, but I doubt that is desirable. |
Do you know what needs to be added to allow the profile transition? I tested running the container with apparmor=unconfined but it failed with the same error.
Then I tested uninstalling the docker binaries and install using apt.
When I ran docker run hello-world with this it worked even though I used the same AppArmor profile that failed when I installed using the binaries. Looking at the output from docker version the only difference seems to be the build times. Output of
Output of
|
We have a profile you can apply to dockerd here: https://github.com/moby/moby/blob/master/contrib/apparmor/template.go |
It worked, thanks |
Just copy the string, write it into a file and apply to app_armor? |
@Icon95 and @alenpaul2001 what is the path to the file we copy that whole go file to? |
this would be |
Expected behavior
docker run should be able to run the container
Actual behavior
Running docker run hello-world gives this error
and AppArmor message received looks like this
Steps to reproduce the behavior
Download the latest docker binaries from here docker-binaries and install them. I followed this install-daemon-and-client-binaries-on-linux
Create an AppArmor profile that confines the docker daemon.
E.x
Load the profile
Restart docker daemon
docker run hello-world
Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.)
Physical Debian 9
The text was updated successfully, but these errors were encountered: