how to create a custom network with IPV6?


Recommended Posts

hi,there

i want to try to create a custom network with IPV6

docker network create --ipv6 proxy

but it did not work

it shows this

Error response from daemon: could not find an available, non-overlapping IPv6 address pool among the defaults to assign to the network

how should i do?

please help me,thank you

Link to comment
  • 2 months later...

You have to something like this:

docker network create -d bridge \
  --subnet=172.25.0.0/16 \
  --gateway=172.25.0.1 \
  --subnet=fd25::/64 \
  --gateway=fd25::1 \
  --ipv6 \
  yournetworkname

 

I have done this myself, and the docker containers can talk to each other with IPv6.

But i cannot get the docker containers to talk using IPv6 beyond the docker host.

 

Any tips is appreciated

 

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.