News for hackers. Stuff that matters.
Re:Docker 1.5: IPv6 support, read-only containers, stats, an... by anders on Tuesday February 10, 2015 @04:08PM (#9029907)
Wish they'd enable IPv6 by default
Re:Docker 1.5: IPv6 support, read-only containers, stats, an... by justincormack on Tuesday February 10, 2015 @04:32PM (#9030054)
Yes, I dont see why they shouldnt get link local addresses. It is also slightly odd that if there are existing router advertisements they dont get used, rather you have to do manual config.
Re:Docker 1.5: IPv6 support, read-only containers, stats, an... by tianon on Tuesday February 10, 2015 @04:50PM (#9030165)
It does have linked local addresses by default. It's the more complicated setup of actually routing IPv6 addresses outside our current host that's not enabled by default.

https://docs.docker.com/articles/networking/#ipv6 has more of the details (and the discussion at https://github.com/docker/docker/pull/8947#discussion_r22534... is also useful)

Basically, we can't use existing router advertisements (as I understand it) because you also have to tell your current IPv6 router that the entire prefix you use for Docker needs to go to this one host as opposed to just the one IPv6 address that host would auto-assign itself via RA.

Since there's manual outside-Docker setup involved, we can't really automate this bit. If there's a nice clean way to do so, we're definitely open to a PR (I'd love to have something simpler myself)! :)

Re:Docker 1.5: IPv6 support, read-only containers, stats, an... by justincormack on Tuesday February 10, 2015 @04:57PM (#9030209)
That is not very clear from the docs then which say "By default, the Docker server configures the container network for IPv4 only. You can enable IPv4/IPv6 dualstack support by running the Docker daemon with the --ipv6 flag" - that doesnt sound like link local addresses by default...

Will have to take a look, I guess there are lots of potential setups. If you have a /64 per host it should be ok anyway, if you have a /64 for the network it might not be.

Re:Docker 1.5: IPv6 support, read-only containers, stats, an... by zurn on Wednesday February 11, 2015 @02:56AM (#9031935)
Link local addresses are not meant for application level use in IPv6 so bringing them up would only be confusing.

LL addresses are used for stuff like router advertisement, neighbour discovery (IPv6 equivalent of ARP) etc. You can't use link-local addresses without extra gyrations in socket API (scope id) so they cannot be usefully passed to normal apps.

Re:Docker 1.5: IPv6 support, read-only containers, stats, an... by derefr on Wednesday February 11, 2015 @12:39AM (#9031694)
What would be the ideal complementary feature to happen outside Docker to make this easier? Make radvd cgroup-aware, maybe?
Re:Docker 1.5: IPv6 support, read-only containers, stats, an... by justincormack on Wednesday February 11, 2015 @05:36AM (#9032223)
I am not sure you need to. If each machine has a /64, then each can assign that on the docker0 bridge and run radvd which assigns addresses to the docker containers (from the /64 or eg a /80). I dont see radvd needs changes; you should be able to even run it on its own docker container.

I think the issues are more around the fact you may need to change existing addresses, plus potentially split up the /64 (or whatever) your machine has among docker bridges, plus you need to make sure the /64 is no longer on the external interface.

Re:Docker 1.5: IPv6 support, read-only containers, stats, an... by shykes on Tuesday February 10, 2015 @04:41PM (#9030112)
We really wanted to, but there was a specific reason not to. I will ask our resident ipv6 expert to provide more details.