mirror of
https://github.com/aljazceru/addons.git
synced 2026-02-07 14:14:23 +01:00
Add default WSL (#2106)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user