Skip to content
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

IPV6 address #4483

Closed
DominicBoettger opened this issue Mar 6, 2014 · 6 comments
Closed

IPV6 address #4483

DominicBoettger opened this issue Mar 6, 2014 · 6 comments

Comments

@DominicBoettger
Copy link

Tried to run:
docker run -lxc-conf="lxc.network.ipv6=myip/112" -lxc-conf="lxc.network.ipv6.gateway=mygw" -i -t ubuntu /bin/bash

After that the ip address wasn't set entire correct. The gateway ip was added as second ip address and the gateway configuration was wrong.

Before upgrading to 0.8.1 i was able to fix this when setting the ip addresses in my run.sh.

Now i get an error when executing:
ip -6 addr add myip dev eth0

RTNETLINK answers: Operation not permitted

How can i make this work again? Or will i have to downgrade to 0.7.1 again?

@crosbymichael
Copy link
Contributor

@DominicBoettger to change the ip from within a container you need to run it in --privileged mode

@DominicBoettger
Copy link
Author

@crosbymichael Is there a way to get the lxc network solution to work? Did i something wrong using the lxc config?

@crosbymichael
Copy link
Contributor

sorry, I'm not sure. does --privileged work?

@DominicBoettger
Copy link
Author

Yes, it does work. Thank you!

@MalteJ
Copy link
Contributor

MalteJ commented Jul 11, 2014

There should be a way to set an IPv6 address without the privileged mode! I want to force the container to use a specific IP from the outside.

@mildred
Copy link

mildred commented Jul 17, 2014

Now that docker doesn't use LXC by default, it should be possible to specify MAC address or IPv6 address of the container interface when running it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants