-
Notifications
You must be signed in to change notification settings - Fork 612
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
nerdctl run with --cap-add NET_BIND_SERVICE not working #2439
Comments
HI @Caian The nerdctl cap can work correctly in the environment.
And the Would you please tell us more detail about the steps to reproduce the issue :-) |
==> |
Since there's no feedback with more details, it appears @Caian did not add the capability when using Docker prior (since it was not necessary).
Solutions
NOTE: The
Ambient capabilities requires at least kernel 4.3, and the sysctl requires at least kernel 4.11. |
Sorry, I forgot to answer to the thread. Yes, I ended up adding |
@AkihiroSuda there is no bug here, we should close. @Caian was able to get what they want with |
Description
I have several linuxserver-based containers whose unprivileged services bind to port 80 inside the container, so I can access them through a VPN without having to add port numbers to my URL's. This setup has been working without issue on docker.
Now I'm moving to containerd (docker support is being dropped on truenas scale) and most of my containers fail to bind to port 80.
I modified my
run
commands to use--cap-add NET_BIND_SERVICE
as instructed in the containerd github page, but the containers still fail to bind.I can use
docker inspect
on the old containers to confirm that NET_BIND_SERVICE is present, butnerdctl inspect
does not return any CapAdd field.Steps to reproduce the issue
nerdctl run --cap-add NET_BIND_SERVICE
Describe the results you received and expected
I expected the unprivileged service to bind to port 80 / 443, but it doesn't.
What version of nerdctl are you using?
1.5.0
Are you using a variant of nerdctl? (e.g., Rancher Desktop)
None
Host information
The text was updated successfully, but these errors were encountered: