MongoDB/Docker
From charlesreid1
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.