-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Failed to run ping command from within docker container: "bash: /usr/bin/ping: Operation not permitted". #19
Comments
|
I checked the document here, and figure out the following trick:
or OTOH, based on the help, I see the following explanation:
But, I still can't figure out how to add multiple explicit capabilities with one --cap-add argument. Any hints? Regards, |
This way:
You could have just tried out. Edit: just saw your edit; I don't know how to specify a list instead of using single options. |
In my case, using a debian image, I had pass the flags |
The container is created with this Dockerfile and started with the following command:
$ x11docker --sudouser -c --hostnet --desktop --init=systemd -- --cap-add=IPC_LOCK --security-opt seccomp=unconfined -- hongyi-zhao/deepin-wine startdde
But I failed to execute the ping command in the container as shown below.
Any hints for this problem?
Regards,
HY
The text was updated successfully, but these errors were encountered: