-
Notifications
You must be signed in to change notification settings - Fork 229
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
ERROR: missing CAP_SYS_ADMIN via docker-compose #80
Comments
Update: Managed to get it to work with docker run instead of compose, now I get:
================================================================== |
Checking the references, this error seems to also be due to CAP_NET_ADMIN missing, even though Docker tells me my container has it set... could there be any reason why docker cannot set NET_ADMIN? |
No, sorry it's not a duplicate. Tried your repository, running via docker-compose I still get the error, with both cap_add or privileged: true |
In Alpine 3.17, capsh is provided by package libcap-utils, so installing nfs-utils alone is not enough
You are correct. My bad. Fixed here. |
@xZero707 that would still not work with
|
|
Tried to run the container via your example docker-compose.yml, but get below error:
==================================================================
SETTING UP ...
/usr/local/bin/entrypoint.sh: line 276: capsh: command not found
---->
----> ERROR: missing CAP_SYS_ADMIN. be sure to run this image with --cap-add SYS_ADMIN or --privileged
---->
Also tried making the container privileged and verified it is privileged, but same error.
The text was updated successfully, but these errors were encountered: