Skip to content

Commit

Permalink
Add default WSL (home-assistant#2106)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus authored Jul 8, 2021
1 parent af10fc3 commit 3a9fbeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .devcontainer/supervisor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3a9fbeb

Please sign in to comment.