This guide will get you up and running with Mongo
docker pull mongo:X.X.X
docker run -d -p 27017-27019:27017-27019 --name mongoXXX mongo:X.X.X
latest version as of this writing is 4.2.5 which we would name mongo425
like so:
docker run -d -p 27017-27019:27017-27019 --name mongo425 mongo:4.2.5
docker exec -it mongo425 bash
then run:
> mongo
> show dbs
> use task-management
This will first show us the current databases and then we create a new database called task-management