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.

  • docker exec does not open bash
  • Django + uWSGI/nginx inside docker container - ImportError: No module named .wsgi
  • Composer Install (own Container) with Docker missing PHP Extensions
  • WordPress project setup - Trellis, Valet or Docker?
  • As a MVC dev, Why and when to use a docker?
  • Docker container rake file error
  • 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!

  • Unable to connect to mysql docker container
  • How to get client IP from request inside haproxy docker container?
  • Dockerfile for on and off proxy
  • Destroy Docker container from Marathon kills Mesos slave
  • Why am I getting an ErrImagePull error in this Kubernetes deployment?
  • Bad gateway error on target website configured using the “nginx-proxy” docker container
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.