-
Create a Docker machine named
default, sharingD:\(only one drive can be specified):docker-machine.exe create default --virtualbox-share-folder "d:\\:/d"If the command above fails with "This computer doesn't have VT-X/AMD-v enabled. Enabling it in the BIOS is mandatory", add the
--virtualbox-no-vtx-checkoption and try again.
-
Create
/etc/wsl.confwith:[automount] root = / options = "metadata" -
Add the following to your
~/.bashrc:if [ "$(docker-machine.exe status default)" = "Stopped" ]; then docker-machine.exe start default fi eval $(docker-machine.exe env default --shell bash) export DOCKER_CERT_PATH=$(wslpath $DOCKER_CERT_PATH) export COMPOSE_CONVERT_WINDOWS_PATHS=false
- Volumes only work if the host path is under
D:\