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
Natively support IPv6 #3609
Comments
See pull request #2974 |
Opened a pull request (#8947) that would solve this issue |
#8947 is merged |
Thanks for the work. I (in reality stefan-it) can confirm that --fixed-cidr-v6 with an extra prefix works. Is this the only possibility to use IPv6? My network is big enough (/48) but I have a very restricted access to the router, so the extra route configuration has a big extra effort to me. |
Hi Thomas, To emphasize it once again: |
Thank you for the detailed explanation. If I route a /64 to one host I can start 4 containers with /66 each? |
No, we do not assign subnets to containers. Just single addresses. |
Now l completely confused. The option is an prefix? You take only one address out of this prefix? Is that right? |
yes, that's right. Every container gets one address out of the subnet you specify with |
I am still not very happy with the "routed" configuration. This is very hard. Here at the Uni the routers are in the hand of the lrz. At home (speedport, fritz.box, ....except openwrt) you have no chance to set extra routes. Is your solution compatible with an /128 prefix (alias host) from the same LAN with an additional ndp-proxy-entry? |
NDP-Proxying may work. I haven’t tried it yet.
|
Be careful with duplicate MAC addresses when using Docker on multiple hosts on the same ethernet link. |
First attempts with NDP-Proxying did not work. I tried it with /128 and one manual ndp proxy entry. In respect to this, using the same network and ndp-proxying could only work with an additional help-daemon like ndppd or npd6. Maybe some IPv6 & docker experts have an idea here, to make the the (good) iPv6-solution easier to use for people who don't have access to their routers |
The /80 subnet is just recommended to have a fixed mapping between MAC and IPv6 address, so you don't run into troubles with cache invalidation when you have short living containers. |
I stopped trying to use ndp-proxy. Maybe I have a understanding problem or it is not possible. You need
How it works:
Listening on Socket/eth0 look at the IAPREFIX, add it to your docker options, here in opensuse: cat /etc/sysconfig/docker Path : System/ManagementDescription : Extra cli switches for docker daemonType : stringDefault : ""ServiceRestart : docker#DOCKER_OPTS="" start docker-daemon with systemctl start docker run docker with docker run -t -i opensuse /bin/bash ping6 heise.de that's it. PS: The firewall of the Fritzbox is little bit strange. You can't open the whole subnet. |
@thomasschaeferm thanks for your work! |
I will have a look on it. Thanks again for integrating IPv6. |
some hours and some reboots later: I can confirm that your beautiful manual for "Using NDP proxying" works. (at least one time) I still don't know why I have some problems, the last time I had to start docker twice before it did work. hpmini:~ # systemctl status docker Feb 21 11:57:18 hpmini docker[2029]: time="2015-02-21T11:57:18+01:00" level="info" msg="+job serveapi(unix:///var/run/docker.sock)" Feb 21 11:58:02 hpmini docker[2143]: time="2015-02-21T11:58:02+01:00" level="info" msg="+job serveapi(unix:///var/run/docker.sock)" Thomas |
when changing IPv6 settings you always have to check if those settings are actually configured on the bridge. If there is an existing bridge Docker will not enforce some changes.
This way the IPv6 address and the routes are added to the bridge / route tables. |
The Problem is the first start fails( there was no bridge at this time). But now is week end. In principle it works. |
Docker should provide ipv6 connectivity to its containers natively.
The text was updated successfully, but these errors were encountered: