Question

vps have 16 ipv6 ,how to map these IPV6 to the 16 of docker containeris which is simple puling down ubutun,

Posted December 6, 2018 805 views
DockerUbuntu 18.04

vps have 16 ipv6 ,how to map these IPV6 to the 16 of docker containeris which is simple puling of ubutun,
when you communiate with a IPV6 of the vps ,the data normally go to the docker.
16 docker container like 16 vps.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

Hello,

I just came across this question.

What you could do is enable IPv6 for your Docker deamon by editing your /etc/docker/daemon.json file and setting the ipv6 key to true.

{
  "ipv6": true
}

Then save the file and reload the Docker configuration file:

  • systemctl reload docker

After that you will be able to create networks with the --ipv6 flag and assign containers IPv6 addresses using the --ip6 flag.

Regards,
Bobby

Submit an Answer