Add default WSL (#2106)

This commit is contained in:
Joakim Sørensen
2021-07-08 09:59:59 +02:00
committed by GitHub
parent af10fc3c26
commit 3a9fbeb0ac

View File

@@ -9,8 +9,8 @@ function start_docker() {
local starttime
local endtime
if grep -q 'Alpine' /proc/version; then
# The docker daemon does not start when running Alpine backed WSL2 without adjusting iptables
if grep -q 'Alpine|standard-WSL' /proc/version; then
# The docker daemon does not start when running WSL2 without adjusting iptables
update-alternatives --set iptables /usr/sbin/iptables-legacy || echo "Fails adjust iptables"
update-alternatives --set ip6tables /usr/sbin/iptables-legacy || echo "Fails adjust ip6tables"
fi