The mongo image contains an instance of a MongoDB database.
The image can be build from the project root directory executing:
docker build --tag=btd/mongo .
To run the container taking as reference the image created, you can execute the following command:
docker run --interactive --tty \
--volume "<local-dir>:/data/db" \
--publish "<local-port>:27017"
btd/mongo
This image requires the user to provide:
To create and run a container from the btd/mongo image in detached
mode, you can run the previous command substituting the --interative
and --tty options the following way:
docker run --detach \
--volume "<local-dir>:/data/db" \
--publish "<local-port>:27017"
btd/mongo
Content type
Image
Digest
Size
124.6 MB
Last updated
over 8 years ago
docker pull bigtruedata/mongo