Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mongo DB using Docker Image

Operating System :- windows 10

I am using Docker toolbox and Install MongoDB Image on my local system. Image installation done successfully.

enter image description here

after that I am using command docker exec -it taxlien bash to connect with mongo db and it connected successfully but I am unable to connect through our local using MongoDB Compass Community and also through our web application.

enter image description here

like image 412
Ajay Jirati Avatar asked Apr 21 '26 15:04

Ajay Jirati


1 Answers

Now Finally I got solution using cmd docker-machine ip default , I got IP address after that I will execute cmd

docker run -p :27017 --name test -d mongo:3.6

then i will connect with my local application and MongoDB commuinty.

like image 130
Ajay Jirati Avatar answered Apr 24 '26 20:04

Ajay Jirati



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!