From charlesreid1

Revision as of 08:34, 31 January 2018 by Admin (talk | contribs) (Created page with "Git checkout the docker repo for mongodb: https://charlesreid1.com:3000/docker/d-mongodb Make the container with the make command The container should run, and /opt/mongodb...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Git checkout the docker repo for mongodb: https://charlesreid1.com:3000/docker/d-mongodb

Make the container with the make command

The container should run, and /opt/mongodb on the host machine will be mounted inside the Docker container, so that all database data will be persistent

To attach to the container, use docker exec:

docker exec -ti happy_mongo /bin/bash

This will give you a shell inside the MongoDB docker machine. From there, you can debug problems in the container, update the database, run admin commands, etc.