Steps to follow:
- docker pull mongo:latest -> to get the images from docker hub
- docker run -p 2717:27017 -v "ABSOLUTEPATH TO SOME DIR":/data/db --name mymongo mongo -> This would run it in attached mode by deafult
- docker exec -it mymongo mongo -> Gives you the shell to interact with
Can install docker compass and connect to localhost:2717 to see this as in GUI
🎉