Add Database support MongoDb with Microservice
Check MongoDB image on Pubic Repository
- Open: hub.docker.com
- Search for Mongo official Image - https://hub.docker.com/search?q=mongo
Set up Mongo database Container at Docker Desktop at you local
- Make sure Docket Desktop is running
- Open Visual Studio > Right click on SLN folder and > “Open in Terminal”
- This will Open Powershell Terminal window at below part of Visual Studio
- In Powershell Terminal:---
- Check is docker is running on local system or not
- docker ps
We can see no Container images is present- as this is the first container we are creating at our local
Downloads MongoDB Image from Global Repository
- docker pull mongo
and hit enter- its start downloading from Global Repository.
- after downloading its extracting in respective directory.
Cross check in Docker Desktop >> Images