Docker IPv6 fixed IP address


Recommended Posts

Hey everyone,

 

I have IPv6 setup on my network and would like to setup some dockers to use a Fixed IPv6 address but so far I haven't been able to set a container with an IPv6 address.

it seems even though the fixed IP address has my IPv6 subnet on it I can't use it. if I put an IPv6 address in there I get an error when I try to update the container.

image.thumb.png.7c15d8cc8f7e61c18bd0d880d5d14988.png

 

the error I get is invalid ipv4 address but I'm trying to use a IPv6 address 

image.thumb.png.9c46ee2024f54cfef22f455810026592.png

 

Has anyone been able to get this working? 

 

Link to comment

You try to setup an ipv6 with the ipv4 tag, thats not right.

Normally docker will automaticly setup ipv6 for your container. You can find that out by listing your docker network.

If you want to set up your own fix address use the extra parameter (There is one extra input in the docker form)  - - ipv6='1234:5678:abcd:efab' (--ipv6 without empty spaces)

 

Cheers

Link to comment
On 3/2/2019 at 1:19 AM, DBerry2 said:

it seems even though the fixed IP address has my IPv6 subnet on it I can't use it. if I put an IPv6 address in there I get an error when I try to update the container.

This is a bug and corrected in the next release.

It will be possible to assign both an IPv4 and IPv6 address. E.g.

image.png.f87f49903f516f5714a0e685453385ec.png

 

As a temporary workaround use the extra parameters field and set the IPv6 address.

--ip6='2a02:aaaa:bbbb:101::100'

 

Edited by bonienl
Link to comment
  • 3 years later...
On 3/3/2019 at 8:46 AM, bonienl said:

It will be possible to assign both an IPv4 and IPv6 address. E.g.

image.png.f87f49903f516f5714a0e685453385ec.png

I tried this but it does not seem to work. The container is not pingable via its IPv6 address.

 

I noticed there apparently are two different IPv6 ranges. The one displayed when editing the container and the range from the Docker settings differ (censored parts that match):

XXXX:XXXX:5520:e500::/64 -- Container Settings
XXXX:XXXX:555e:a600::/64 -- Docker Settings

When I use "XXXX:XXXX:5520:e500::105" the container starts but is not pingable. When I use the base from the Docker settings the container doesn't start with an "error code 403". I am using a custom bridge to make the container appear as its own device on my local network.

Edited by DesertCookie
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.