After enable ipv6 in the docker, it works for only static ipv6 address, but not DHCP ipv6 address #45208
WallaceSUI
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Sorry to trouble all of you.
Recently, I follow the guidance to enable ipv6 for the docker in my linux machine
I directly edit the /etc/docker/daemon.json file for adding these parameters:
"ipv6": true,
"ip6tables": true,
"experimental": true,
"fixed-cidr-v6": "2001:db8:abc1::/64"
Then just restart the docker.
Then for example, here are two ipv6 addresses
static ipv6 address A
DHCP(dynamic) generated ipv6 address B
Case1:
When I use "ping6 A" in my linux machine, it works with response
Case2:
When I use "ping6 B" in my linux machine, it works but should have a zone identifier behind, like "B%eth0"
Case3:
when I use "docker exec -it myDocker bash" to get inside a docker, and then run "ping6 A", it works with response
Case4:
when I use "docker exec -it myDocker bash" to get inside a docker, and then run "ping6 B", it always throws the error message "ping6: sendto: Invalid argument"
Then I also try "ping6 B%eth0", it will be time out without any response.
For case4, I do not understand, for DHCP generated ipv6 address, why we cannot use it or ping6 it inside the docker? Why the docker cannot automatically assign a zone identifier to it? what is the problem here? how to fix it?
Thanks a lot. Really need your help.
Beta Was this translation helpful? Give feedback.
All reactions