Steps to Run the simple mongodb server
- Clean up the existing the docker images (Be caution it will remove every images in the server)
docker rm $(docker ps -a -q)
docker rmi $(docker images -q)
- Build the docker container with the below command
docker build -t mongodb .'
- Run the docker container with the below command
docker run -it -p 5000:5000 -d mongodb'