The default Docker setup on Windows and OS X uses a VirtualBox VM to host the Docker daemon.
VM file transfer is not compatible with the memory mapped files used by MongoDB. So you cannot map a host folder to store data.
You need to create a new volume in the docker-compose file and map it to that instead.
I.E.
The default Docker setup on Windows and OS X uses a VirtualBox VM to host the Docker daemon. VM file transfer is not compatible with the memory mapped files used by MongoDB. So you cannot map a host folder to store data.
You need to create a new volume in the docker-compose file and map it to that instead. I.E.