Will in-VM data be lost after upgrade?

Hi,

I’ve a question. I want to use Docker volumes to keep data which is produced by the container independent from the container lifecycle. However, I don’t want to use Windows shared volumes for that because they still seem to be a bit unstable to me and I also don’t need access to the data from my Windows machine directly.

What I’m wondering: When I do something like -v /data:/bla/foo, will my data in /data be safe and survive Docker for Windows upgrades? Or is it a bad idea? I fear that Docker for Windows upgrades could reset/reinstall the Hyper-V machine and all my volume data in the Hyper-V machine is lost.

Thanks for your help.

Benjamin