From 47ac142dc9b440c90cdc037c77ab80c47263f9e2 Mon Sep 17 00:00:00 2001 From: Kevin Krakauer Date: Fri, 26 Jun 2020 11:18:00 -0700 Subject: Enable docker IPv6 in kokoro We need docker IPv6 for ip6tables tests. Docker has spotty IPv6 support, so just enabling IPv6 in daemon.json breaks the Ruby image test (AFAICT it breaks anything that tries to use IPv6 to reach the internet). An ip6tables NAT rule is added to handle this. We could make these changes as part of scripts/, but these would overwrite global values and possibly break users' systems. PiperOrigin-RevId: 318508209 --- tools/vm/ubuntu1604/25_docker.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tools/vm/ubuntu1604') diff --git a/tools/vm/ubuntu1604/25_docker.sh b/tools/vm/ubuntu1604/25_docker.sh index 11eea2d72..53d8ca588 100755 --- a/tools/vm/ubuntu1604/25_docker.sh +++ b/tools/vm/ubuntu1604/25_docker.sh @@ -52,3 +52,14 @@ while true; do exit $result fi done + +# Enable Docker IPv6. +cat > /etc/docker/daemon.json <