docker-machine
Doesn't work properly inside of WSL, this function makes it work.
Add this to ~/.bashrc:
function docker-machine()
{
if [ $1 == "env" ]; then
docker-machine.exe $1 $2 --shell bash | sed 's/C:/\/c/' | sed 's/\\/\//g' | sed 's/"//g'
else
docker-machine.exe "$@"
fi
}
export -f docker-machine
In case you have not mounted C drive to root folder, change s/C:/\/c/
to s/C:/\/mnt\/c/
in the script above.
Use it like standard docker-machine