Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

MongoDB Dockerfile

Based on https://github.com/dockerfile/mongodb

Current MongoDB version 2.6.3 (official dockerfile build is 2 point releases behind at this time)

Dependencies

  • ubuntu:14.04

Usage

Run mongod

docker run -d -p 27017:27017 --name mongodb asherwin/mongodb

Run mongod w/ persistent/shared directory

docker run -d -p 27017:27017 -v <data-dir>/db:/data/db --name mongodb asherwin/mongodb

Run mongod w/ HTTP support (requires firewall on port 28017)

docker run -d -p 27017:27017 -p 28017:28017 --name mongodb asherwin/mongodb mongod --rest --httpinterface

Run mongo

docker run -it --rm --link mongodb:mongodb asherwin/mongodb bash -c 'mongo --host $MONGODB_PORT_27017_TCP_ADDR'
Docker Pull Command
Owner
asherwin
Source Repository

Comments (0)