merofeev / docker-windows-volume-watcher

A tool to notify Docker contianers about changes in mounts on Windows.
MIT License
188 stars 30 forks source link

Ignore a preceding /host_mnt in the Hyper-V mount path #6

Closed etrepum closed 6 years ago

etrepum commented 6 years ago

I'm not sure if this was a change in my environment or a change in Docker, but I had to make this change recently in order to keep it working. Without this, I'd get errors such as

WARNING:root:Bind of container website_web_run_13 was skipped since it has invalid source path /host_mnt/c/Users/...
WARNING:root:Bind of container website_web_1 was skipped since it has invalid source path /host_mnt/c/Users/...
WARNING:root:No mounts match container name pattern * and host directory pattern *
merofeev commented 6 years ago

Hi Bob Ippolito! Thanks for doing this. The new mount path style seems to appear between versions 17.09.1-ce-win42 and 17.12.0-ce-rc4-win44 of Docker for Windows. I have double checked that your patch works well with both old and new docker versions.