Docker under WSL has some issues with volume mounts. They will tend to fail silently (as far as I can tell).
Steps to follow to get these working:
- Change default mount point for the Win host FS under WSL.
Edit
/etc/wsl.conf
and add or change the following. You may need to fully reboot Windows for this to take effect.
[automount]
enabled = true
root = /
-
Mounts in WSL must be under /c/ or they won't work.
-
Double check your path name for container mount directory within Docker. If it doesn't exist, it'll fail silently.