Supported tags : latest (default tag)
Base image is centos:latest not debian:wheezy
How to use this image
start a mongo instance
sudo docker run --name "instance-name" -p 27017:27017 -v /HostAbsolutePath:/dbdata niraj38re/centos-mongodb
this will mount the HostAbsolutePath into the container's absolute path /dbdata
so data will be persistence when container image rebuilt
/dbdata is default path inside container where Host directory is mounted cause /dbdata is Directory inside container where mongodb data will be saved by passing --dbapth argument
Supported Docker versions
This image is officially supported on Docker version 1.4.1.
Support for older versions (down to 1.0) is provided on a best-effort basis.
What is MongoDB?
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.