Ipv6 docker support

Problem/Justification
docker default configuration does not support ipv6

Impact
Users who want/need to use ipv6 inside docker will get errors, and things generally won’t work.

User Story
A user can set up a docker service that depends on a remote ipv6 address which is routeable, and the service works.

More details on: [NAS-131333] - iXsystems TrueNAS Jira

I tried configuring the docker daemon.json like Jian A suggested, but the strange thing is that it broke ipv6 on the host system for me until I rebooted. Would like some attention on a working stable docker ipv6 config that can persist between reboots.

Edit: just wanted to include that I’m on 24.10-RC.2

2 Likes

Adding my voice here. I was badly surprised by this regression on upgrading to 24.10.0, where it seemed to work fine in 24.04.

I didn’t realize that one of my services was now unable to communicate with the MinIO container running on TrueNAS. The NAS itself has both IPv4 and IPv6 IP addresses on my LAN, and so I had defined it in DNS similarly. The server was selecting the IPv6 address to talk to the NAS and was silently failing until I noticed the next morning that all the media jobs had failed. Putting the IPv4 address directly into the configuration of the server is a quick work-around.

(I only upgrade TrueNAS because it addressed another bug I had in that train.)

1 Like