Browse Source

+ disable ipv6 on docker install

master
WSL Winda 18 hours ago
parent
commit
32e0553081
  1. 4
      install-docker.sh

4
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
Loading…
Cancel
Save