Sign inSign up

bethington/mongo

By bethington

Updated over 9 years ago

MongoDB

Image
0

121

bethington/mongo repository overview

Download and start MongoDB docker image as new container

  • -p 27017:27017 exposes the MongoDB port so the mean container can connect to it
  • -d runs it as a background process
  • --name db gives this cointainer a name so it can be referenced
  • mongo is the image name that should be run $ docker run -p 27017:27017 --name shamrock_db -d bethington/mongo:0.0.1

or with links to directories outside of the Docker container:

$ docker run -p 27017:27017 --name shamrock_db -v /Users/bethington/docker_files/shamrock/configdb:/opt/mean.js/data/configdb -v /Users/bethington/docker_files/shamrock/db:/opt/mean.js/data/db -d bethington/mongo:0.0.1

Tag summary

Content type

Image

Digest

Size

125.8 MB

Last updated

over 9 years ago

docker pull bethington/mongo:0.0.1