Public Repository

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

Based on official mongo repo Dockerfile for mongodb 2.8.0-rc0

  • 2.8.0-rc3

How to use this image

start a mongo instance (daemon)

docker run -it davidau/mongo:2.8.0-rc3 -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).

connect to it from an application

docker run --name some-app --link davidau/mongo:2.8.0-rc3 -d application-that-uses-mongo

… or via mongo

docker run -it --link davidau/mongo:2.8.0-rc3 --rm mongo sh -c 'exec mongo "$MONGO_PORT_27017_TCP_ADDR:$MONGO_PORT_27017_TCP_PORT/test"'

Alternatively, start the container and shell into it

docker run -it davidau/mongo:2.8.0-rc3 /bin/bash
root@dd6ce1f95219:/# mongod --fork --syslog
root@dd6ce1f95219:/# mongo

Docker version

This image was created using Docker version 1.4.1 and boot2docker 1.4.1.


You can find the source Dockerfile used to build these images on GitHub here.

Docker Pull Command