Does docker on Windows SBS 2011 write to mounted volume immediately?
I’ve played around a lot with docker on Linux and Mac OS and all worked pretty well.
Now I want to setup a small container on a Windows SBS 2011 host system. As of now I don’t have access to that production system and want to know if there’s any special thing I should know about mounted folders on Windows.
Especially I want to know if there’s some caching between the Windows host and the VM when using Virtualbox (as of now Version 5+).
I would like to mount my rails app as follow:
docker run -d -v /c/Users/docker/container-mount/db:/usr/app/db -v /c/Users/docker/container-mount/logs:/usr/app/log -p 3000:3000 --restart=always -t image:v1.0.0 rails s -e production -p 3000
- On my Mac every change to the database is immediately reflected to the mounted folder.
- On my Windows 7 system it seems that data is only written when stopping the container. Which could potentially lead to data loss if the container crashes in production.
Any help is appreciated. Thanks!