connect robomongo to mongoDB docker container

后端 未结 7 1652
耶瑟儿~
耶瑟儿~ 2021-02-02 17:11

I\'m running a NodeJS App with docker-compose. Everything works fine and I can see all my data by connecting to Mongo inside container. But when I connect to RoboMo

7条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-02 17:32

    I was facing a different problem. I had installed MongoDB locally. So, when the MongoDB on docker was running, it was clashing with the one running on my host. I had installed it using brew.

    So, I ran

    brew services stop mongodb-community

    and then I restarted Robo3t. I saw the databases created in the MongoDB running on the docker.

    Voila!

提交回复
热议问题