-
Notifications
You must be signed in to change notification settings - Fork 86
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
Unable to modify ipv6 settings via sysctl in container #197
Comments
Hitting this as well, haven't tried setting with sysctl yet but the host is definitely not carrying this setting to the container, which is net.ipv6.conf.eth0.disable_ipv6=0 on the host and ipv6 is setup correctly in daemon.json similarly to above. Info: Linux rund-3-15 4.13.0-21-generic #24-Ubuntu SMP Mon Dec 18 17:29:16 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux Ubuntu 17.10
|
This is only partially related to my issue; ipv6 is not turning off sysctl |
ping @fcrisciani |
This is an issue for us too. |
will take a look at it |
First I am able to reproduce this issue. I did lot of digging , reading and debugging for this . So sorry for taking few days to give an update. Again its any of sysctl setting will work using cap-add option. so its nothing to do with ipv6 or network specific. @thaJeztah , I think we can close this one. |
Please don't close it without a clear solution in this thread. The link given does not answer the question for me. What is the correct approach given that
results in
|
The solution is to use the So for example, docker run --sysctl net.ipv6.conf.all.disable_ipv6=1 yourimage Note that these are runtime options, so cannot be set inside an image (so can't be set during Closing this per the above discussion, but feel free to continue the conversation |
Expected behavior
with the
NET_ADMIN
capability, I expect to be able enable or disable ipv6 viasysctl -w net.ipv6.conf.all.disable_ipv6=0
Actual behavior
I am unable to configure ipv6 with either
--cap-add NET_ADMIN
or--cap-add ALL
. it only works with--privileged
Steps to reproduce the behavior
Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.)
raspberry pi 3b running hypriot
/etc/docker/daemon.json
The text was updated successfully, but these errors were encountered: