I am running mongo docker image that I pulled from docker hub mongo image
It works ok but when I start Robomongo I cannot connect to localhost. With following error message:
Cannot connect to the MongoDB at localhost:27017.
Error: Network is unreachable
I appreciate any help, thanks.
EDIT: I solved the issue by using the following command:
docker run -p 27017:27017 --name mongo_instance_001 -d mongo
Don't forget to map port to host port:
Then
gives me
192.168.99.100
Type in terminal
prints
I also tested with robomongo. I can connect without a problem.
you can find docker-machine ip just typing this command docker inspect
container id is sha256