for-mac icon indicating copy to clipboard operation
for-mac copied to clipboard

Docker for mac doesn't work on IPv6 network

Open bobrik opened this issue 7 years ago • 43 comments

Expected behavior

Docker for mac works on IPv6 network.

Actual behavior

Docker for mac doesn't work on IPv6 network.

Information

Documentation states: "IPv6 is not yet supported on Docker for Mac":

  • https://docs.docker.com/docker-for-mac/troubleshoot/#workarounds-for-common-problems

#704 links to some issues and there are many others mentioning IPv6, but all of them are closed like broken IPv6 is a normal state of affairs. This issue can be closed when either:

  • IPv6 works out of the box.
  • Documentations states that IPv6 will never be supported.

Steps to reproduce the behavior

  1. Install docker for mac on a machine with dual-stack network.
  2. Run a container, ping6 google.com in it.
  3. Despair.

bobrik avatar Mar 14 '17 18:03 bobrik

Thanks for your request for IPv6 support -- I've escalated it to the networking team.

djs55 avatar Mar 21 '17 11:03 djs55

@djs55 Is there any progress in supporting ipv6? It's an actual blocker for us :(

dfilatov avatar Aug 11 '17 21:08 dfilatov

There's been a little progress -- I recently fixed a bug in the IPv6 support within the Mirage TCP/IP stack which is used inside Docker for Mac. I think the next task is to configure the router discovery in vpnkit

djs55 avatar Aug 11 '17 22:08 djs55

Are you able to provide any update to this issue?

aaranmcguire avatar Nov 30 '17 15:11 aaranmcguire

Issues go stale after 90d of inactivity. Mark the issue as fresh with /remove-lifecycle stale comment. Stale issues will be closed after an additional 30d of inactivity.

Prevent issues from auto-closing with an /lifecycle frozen comment.

If this issue is safe to close now please do so.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle stale

docker-robott avatar Mar 28 '18 09:03 docker-robott

/remove-lifecycle stale

aaranmcguire avatar Mar 28 '18 09:03 aaranmcguire

Are there any updates?

nikolaymatrosov avatar Jul 21 '18 07:07 nikolaymatrosov

Issues go stale after 90d of inactivity. Mark the issue as fresh with /remove-lifecycle stale comment. Stale issues will be closed after an additional 30d of inactivity.

Prevent issues from auto-closing with an /lifecycle frozen comment.

If this issue is safe to close now please do so.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle stale

docker-robott avatar Oct 19 '18 02:10 docker-robott

According to Google, IPv6 global usage has reached 25% (source: https://www.google.com/intl/en/ipv6/statistics.html?25%#tab=ipv6-adoption). Maybe the "network team" could look into this again? Let's embrace the future!

boutetnico avatar Oct 19 '18 06:10 boutetnico

/remove-lifecycle stale

aaranmcguire avatar Oct 19 '18 12:10 aaranmcguire

/lifecycle frozen

aaranmcguire avatar Oct 19 '18 12:10 aaranmcguire

Is still a big problem. Are there any news/plans on this issue?

alvassin avatar Jul 14 '19 16:07 alvassin

Cant believe apps still ignore ipv6 in 2020... ipv6 is not the future, its actually now.

You can enable ipv6 on Docker on Linux...

Why not mac?

PhilETaylor avatar Mar 22 '20 18:03 PhilETaylor

According to Google, IPv6 global usage has reached 25%

That was 2 years ago. It's now little over 31%. But some countries are close to, or passed 50%.

mdavids avatar Mar 22 '20 19:03 mdavids

@PhilETaylor It's worse than that, there are some things that are much better approached assuming an IPv6 network and how they are designed with later developments backfilling IPv4 (or not).

I had an IoT project that we had to start with IPv4 due to too low penetration of IPv6. The engineering cost was 30% higher, and I doubt that the design bugs that arose from assuming IPv4 have yet been ironed out.

timcoote avatar May 09 '20 11:05 timcoote

" IPv6 is not the future, its actually now."

bkda avatar May 20 '20 12:05 bkda

This issue has been open for 3+ years now and makes Docker desktop on Mac unusable for some people. Are there any serious plans to actually implement this ?

SRv6d avatar Oct 11 '20 18:10 SRv6d

Any news please?

onevelik avatar Nov 02 '20 12:11 onevelik

It's very sad that IPv6 still ignored by Docker team. It brings many troubles for my tasks and make Docker unusable as development environment at our internal networks that IPv6 only

andre487 avatar Jan 20 '21 11:01 andre487

In spite of the message to the contrary on these docs, following these instructions with Docker for Mac appears to work. Screenshot 2021-02-10 at 19 58 39 Screenshot 2021-02-10 at 19 59 19

mtharrison avatar Feb 10 '21 19:02 mtharrison

In spite of the message to the contrary on these docs, following these instructions with Docker for Mac appears to work. Screenshot 2021-02-10 at 19 58 39 Screenshot 2021-02-10 at 19 59 19

I added {"ipv6": true, "fixed-cidr-v6": "2001:db8:1::/64"} as well (and rebooted later). But it doesn't work on my desktop.

$ docker run -it alpine ash
/ # ifconfig -a
eth0      Link encap:Ethernet  HWaddr 02:42:AC:11:00:02
          inet addr:172.17.0.2  Bcast:172.17.255.255  Mask:255.255.0.0
          inet6 addr: 2001:db8:1::242:ac11:2/64 Scope:Global
          inet6 addr: fe80::42:acff:fe11:2/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:10 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1156 (1.1 KiB)  TX bytes:516 (516.0 B)

/ # ip -6 route
2001:db8:1::/64 dev eth0  metric 256
fe80::/64 dev eth0  metric 256
default via 2001:db8:1::1 dev eth0  metric 1024
ff00::/8 dev eth0  metric 256

/ # ping6 2001:db8:1::1
PING 2001:db8:1::1 (2001:db8:1::1): 56 data bytes
64 bytes from 2001:db8:1::1: seq=0 ttl=64 time=0.421 ms
64 bytes from 2001:db8:1::1: seq=1 ttl=64 time=0.302 ms
^C

/ # ping6 ipv6.tsinghua.edu.cn
PING ipv6.tsinghua.edu.cn (2402:f000:1:881::8:205): 56 data bytes
# it hangs here

May I ask what your macOS version is? And the Docker Desktop version? Thanks.

coppercash avatar Apr 01 '21 23:04 coppercash

In spite of the message to the contrary on these docs, following these instructions with Docker for Mac appears to work. Screenshot 2021-02-10 at 19 58 39 Screenshot 2021-02-10 at 19 59 19

The "following these instructions" link goes to a page titled "Enable IPv6 Support", which includes a note: "Note: IPv6 networking is only supported on Docker daemons running on Linux hosts."

Unlike IPv4, IPv6 address prefixes are not normally statically defined, so modifying a config file like this is suboptimal/incomplete.

timcoote avatar Apr 02 '21 16:04 timcoote

Is it possible to make donation or something else to change issue priority? This bug is very annoying...

tarmolov avatar Aug 03 '21 08:08 tarmolov

In spite of the message to the contrary on these docs, following these instructions with Docker for Mac appears to work. Screenshot 2021-02-10 at 19 58 39 Screenshot 2021-02-10 at 19 59 19

No, it won't work. I just tried. Docker for mac runs in a very special type of separate network which prevents ipv6 from working at all.

andrewchen5678 avatar Dec 02 '21 20:12 andrewchen5678

I ended up running docker inside multipass instead, and it works with ipv6 network out of the box, why not Docker Desktop! Other free solutions like VirtualBox also works while not the non-free Docker Desktop solution.

andrewchen5678 avatar Dec 03 '21 06:12 andrewchen5678

My OS is macOS 12.1. I'm still having a same problem.

uplsh580 avatar Jan 12 '22 08:01 uplsh580

I ended up running docker inside multipass instead, and it works with ipv6 network out of the box, why not Docker Desktop! Other free solutions like VirtualBox also works while not the non-free Docker Desktop solution.

Docker is simply deprecated technology. It is advisable to migrate to another containerization solution.

SRv6d avatar Jan 12 '22 12:01 SRv6d

Any news?

mdavids avatar Jan 23 '22 22:01 mdavids

This was opened back in 2017. Any updates? I would accept we are still working on this. Just some sort of communication would be grateful. I really need this feature.

SiirRandall avatar Aug 07 '22 15:08 SiirRandall

Also curious. Major functionality for me lost here.

peredwardsson avatar Aug 11 '22 10:08 peredwardsson