Disable IPv6 in Docker containers on K8s created by Kops on AWS

7/14/2018

I'm running k8s 1.9.3 created with Kops on AWS. All my containers get ipv6 address (in addition to ipv4). The ipv6 localhost in the /etc/hosts seems to break my application's framework.

I'm looking for a reliable way to disable ipv6 inside the containers.

So far tried:

  • Disabled the ipv6 on the hosts (using the asg launch configuration) - didn't affect the containers who still get ipv6.
  • Tried to set Dcoker's --ipv6: false flag (using the asg launch configuration) - from some reason it didn't take and the dockerd starts without this flag.

If anyone has any experience with this issue any advise will be appreciated.

Best,

-- ArAr
amazon-web-services
docker
ipv6
kops
kubernetes

0 Answers