Please use the official
mongo:3.4-windowsservercore image instead of this one! See https://hub.docker.com/r/_/mongo/
But if you look for a nanoserver image, read on.
Supported tags and respective Dockerfile links
- 3.6.5 (3.6/Dockerfile)
Enterprise (3.4/enterprise/Dockerfile) (not published to Docker Hub, Dockerfile only)
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.
Create a DB folder
docker run -v C:/:C:/host microsoft/windowsservercore cmd /c mkdir C:\host\db
Run a MongoDB container
docker run -it -v C:/db:C:/data/db stefanscherer/mongo-windows:3.6.5
View license information for the software contained in this image.