-
Notifications
You must be signed in to change notification settings - Fork 2k
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
ls: Operation not permitted, docker CE 24.0.2 #4333
Comments
docker exec -u user -it container bash So the exec is running as a (non privileged) user; what does This could be related to |
|
"operation not permitted" is odd. Are you seeing the same when running just a vanilla debian image (with no extra options?) are you able to narrow down what option is involved? |
Got it, it's due to passing this file: in I need it to allow me to use Selenium chromedriver from within the container. I have this error when I don't load the file:
Tested
that works pretty well, but I don't understand security implication, not mentioned in https://docs.docker.com/engine/security/seccomp/ So finally:
ChatGPT says: The |
Yes, so it seems that container may need additional syscalls that are protected by default. You could try if that's still the case (if it runs without a custom seccomp profile). If that's not the case, it's possible it's missing a syscall that's allows by default (perhaps the custom profile is outdated), or the profile contains a syscall that's not yet supported by your kernel (docker's embedded default profile handles some conditional rules based on kernel version). You can compare your custom profile with the default generated profile that can be found here; https://github.com/moby/moby/blob/master/profiles/seccomp/default.json |
Sorry, but with
Works well with
|
Closing for now, as this is an issue with your custom seccomp profile; our default profile is not tested against/does not claim to work with Chrome, and your profile is blocking basic functionality. You will want to compare it to the default profile, and determine what is missing. Please do feel free to continue discussion here however, so that those who stumble across this issue may benefit. Also, if you do find a bug, please open it against |
Description
I have a Debian 11 image from
debian:latest
, I can build it as a charm.But when I by example try as root to
ls /tmp
, I get:It's not only
/tmp
. I canls
only my current directory.I searched another bug reports and the web, most of the time people try to upgrade
docker
andlibseccomp2
(I have2.5.1-1
). I tried to get Debian sid packages, but it require to upgradelibc6
that is not a solution if I don"t want to break all my system. Any clue?Reproduce
Expected behavior
To be able to do by example:
docker version
docker info
Additional Info
No response
The text was updated successfully, but these errors were encountered: