diff --git a/install-docker.sh b/install-docker.sh index 3591c47..1706b5b 100755 --- a/install-docker.sh +++ b/install-docker.sh @@ -17,6 +17,10 @@ echo \ \$(. /etc/os-release && echo "\$VERSION_CODENAME") stable" | \ tee /etc/apt/sources.list.d/docker.list > /dev/null apt update -qq +sysctl net.ipv6.conf.all.disable_ipv6=1 +sysctl net.ipv6.conf.default.disable_ipv6=1 +echo 'net.ipv6.conf.all.disable_ipv6=1' > /etc/sysctl.d/90-disable-ipv6.conf +echo 'net.ipv6.conf.default.disable_ipv6=1' >> /etc/sysctl.d/90-disable-ipv6.conf apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -qq docker run hello-world EOF \ No newline at end of file