Skip to content

Add info about MongoDB not supporting vboxsf #470

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 28, 2016

Conversation

yosifkit
Copy link
Member

@@ -47,7 +47,7 @@ Important note: There are several ways to store data used by applications that r
- Let Docker manage the storage of your database data [by writing the database files to disk on the host system using its own internal volume management](https://docs.docker.com/userguide/dockervolumes/#adding-a-data-volume). This is the default and is easy and fairly transparent to the user. The downside is that the files may be hard to locate for tools and applications that run directly on the host system, i.e. outside containers.
- Create a data directory on the host system (outside the container) and [mount this to a directory visible from inside the container](https://docs.docker.com/userguide/dockervolumes/#mount-a-host-directory-as-a-data-volume). This places the database files in a known location on the host system, and makes it easy for tools and applications on the host system to access the files. The downside is that the user needs to make sure that the directory exists, and that e.g. directory permissions and other security mechanisms on the host system are set up correctly.

**WARNING**: because MongoDB uses memory mapped files it is not possible to use it through vboxsf to your host ([vbox bug](https://www.virtualbox.org/ticket/819)).
**WARNING**: because MongoDB uses memory mapped files it is not possible to use it through vboxsf to your host ([vbox bug](https://www.virtualbox.org/ticket/819)). VirtualBox shared folders is not supported by mongodb (see [docs.mongodb.org](https://docs.mongodb.org/manual/administration/production-notes/#fsync-on-directories) and related [jira.mongodb.org](https://jira.mongodb.org/browse/SERVER-8600) bug). This means that it is not possible with the default setup using Docker Toolbox to run a MongoDB container with the data directory mapped to the host.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"VirtualBox shared folders is not" -> "VirtualBox shared folders are not"
"mongodb" -> "MongoDB"

@yosifkit
Copy link
Member Author

@tianon, updated!

@tianon
Copy link
Member

tianon commented Jan 28, 2016

LGTM 👍

tianon added a commit that referenced this pull request Jan 28, 2016
Add info about MongoDB not supporting vboxsf
@tianon tianon merged commit 88903bb into docker-library:master Jan 28, 2016
@tianon tianon deleted the lemon branch January 28, 2016 19:38
@tianon
Copy link
Member

tianon commented Jan 28, 2016

image

@devel0

This comment has been minimized.

@docker-library docker-library locked as resolved and limited conversation to collaborators Jul 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Windows mounting /data/db OS X issue
3 participants