MongoDB with Docker – Quick Refresh

Quick refresh on one way to manage a Mongo database for access by Python programs. Set a directory to store the database. Let's call this /mnt/mongodata. Then run a docker container with the most recent version of MongoDB: docker run --name mongoserver -p 27017:27017 -v /mnt/mongodata:/data/db  mongo. Just for completeness: the "--name" flag allows us … Continue reading MongoDB with Docker – Quick Refresh