Skip to content

Prerequisites setup

Ivan Paulovich edited this page Mar 7, 2018 · 1 revision

Download and run MongoDB container

Run the ./mongodb.sh script to download the MongoDB image and run it as a Docker container. Please wait until the ~400mb download to be complete.

$ ./mongodb.sh
mongo
mongo
56aaa704cabf95d55416b84cc123c8d85d3724b49bed6496c556068e685eb78a

Check the Download

$ docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
mongo               latest              d22888af0ce0        17 hours ago        361MB
$ docker ps
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                                            NAMES
ba28cf144478        mongo               "docker-entrypoint..."   2 days ago          Up 2 days           0.0.0.0:27017->27017/tcp                         setup_mongodb_1

Check the running container details

$ docker ps
CONTAINER ID        IMAGE               COMMAND                  CREATED              STATUS              PORTS                      NAMES
56aaa704cabf        mongo               "docker-entrypoint.s…"   About a minute ago   Up About a minute   0.0.0.0:27017->27017/tcp   mongo

If everything went well MongoDB will be running with the mongodb://10.0.75.1:27017 connection string.

Clone this wiki locally