You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the meantime you might like to install this in /usr/local/bin/docker and hash -r (assuming that /usr/local/bin is earlier in your path than /usr/bin, and docker is in /usr/bin which it is in my default wsl install). The other thing this shim does is add an extra leading / to non /mnt paths which seems to be necessary to properly have them interpreted as "from the linux VM"
#!/bin/bash
cmd=()
stripmount=0
for arg in "$@"; do
if [ "$stripmount" -eq 1 ]; then
new="${arg//\/mnt/}"
if [ "$new" = "$arg" ]; then
arg="/$arg"
else
arg="$new"
fi
stripmount=0
fi
case "$arg" in
-v|-w)
stripmount=1
;;
esac
cmd+=("$arg")
done
exec /usr/bin/docker "${cmd[@]}"
Expected behavior
Actual behavior
As you can see, using
pwd
is not ideal. But if in moby/c
is also available in/mnt/c
, working with docker in wsl is going to be more fun.The text was updated successfully, but these errors were encountered: