2.2.7
,2.2
(2.2/Dockerfile)2.4.14
,2.4
(2.4/Dockerfile)2.6.10
,2.6
,2
(2.6/Dockerfile)3.0.3
,3.0
,3
,latest
(3.0/Dockerfile)
For more information about this image and its history, please see the relevant manifest file (library/mongo
) in the docker-library/official-images
GitHub repo.
MongoDB (from "humongous") is a cross-platform document-oriented database. Classified as a NoSQL database, MongoDB eschews the traditional table-based relational database structure in favor of JSON-like documents with dynamic schemas (MongoDB calls the format BSON), making the integration of data in certain types of applications easier and faster. Released under a combination of the GNU Affero General Public License and the Apache License, MongoDB is free and open-source software.
First developed by the software company 10gen (now MongoDB Inc.) in October 2007 as a component of a planned platform as a service product, the company shifted to an open source development model in 2009, with 10gen offering commercial support and other services. Since then, MongoDB has been adopted as backend software by a number of major websites and services, including Craigslist, eBay, Foursquare, SourceForge, Viacom, and the New York Times, among others. MongoDB is the most popular NoSQL database system.
docker run --name some-mongo -d mongo
This image includes EXPOSE 27017
(the mongo port), so standard container linking will make it automatically available to the linked containers (as the following examples illustrate).
docker run --name some-app --link some-mongo:mongo -d application-that-uses-mongo
docker run -it --link some-mongo:mongo --rm mongo sh -c 'exec mongo "$MONGO_PORT_27017_TCP_ADDR:$MONGO_PORT_27017_TCP_PORT/test"'
See the official docs for infomation on using and configuring MongoDB for things like replica sets and sharding.
View license information for the software contained in this image.
This image is officially supported on Docker version 1.6.2.
Support for older versions (down to 1.0) is provided on a best-effort basis.
Documentation for this image is stored in the mongo/
directory of the docker-library/docs
GitHub repo. Be sure to familiarize yourself with the repository's README.md
file before attempting a pull request.
If you have any problems with or questions about this image, please contact us through a GitHub issue.
You can also reach many of the official image maintainers via the #docker-library
IRC channel on Freenode.
You are invited to contribute new features, fixes, or updates, large or small; we are always thrilled to receive pull requests, and do our best to process them as fast as we can.
Before you start to code, we recommend discussing your plans through a GitHub issue, especially for more ambitious contributions. This gives other contributors a chance to point you in the right direction, give you feedback on your design, and help you find out if someone else is working on the same thing.