Skip to content

Commit

Permalink
Fix WSL support (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
silver886 authored May 27, 2023
1 parent 3cfbc83 commit 0f9e912
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions files/init.d/docker
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ _backwards_compat_should_remote() {
return 0
fi

# wsl drivers don't create a disk image
if [ -e /proc/sys/fs/binfmt_misc/WSLInterop ]; then
return 0
fi

return 1
}

Expand Down
2 changes: 1 addition & 1 deletion files/wsl.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[boot]
command = mkdir -p /var/lib/boot2docker && echo 'DOCKER_REMOTE=yes' > /var/lib/boot2docker/profile && NOZSWAP=true /etc/init.d/rcS
command = NOZSWAP=true /etc/init.d/rcS
[user]
default = docker

0 comments on commit 0f9e912

Please sign in to comment.