+ disable ipv6 on docker install
This commit is contained in:
@ -17,6 +17,10 @@ echo \
|
|||||||
\$(. /etc/os-release && echo "\$VERSION_CODENAME") stable" | \
|
\$(. /etc/os-release && echo "\$VERSION_CODENAME") stable" | \
|
||||||
tee /etc/apt/sources.list.d/docker.list > /dev/null
|
tee /etc/apt/sources.list.d/docker.list > /dev/null
|
||||||
apt update -qq
|
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
|
apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -qq
|
||||||
docker run hello-world
|
docker run hello-world
|
||||||
EOF
|
EOF
|
Reference in New Issue
Block a user