How to connect to MongoDB running in Docker container? How to connect to MongoDB running in Docker container? mongodb mongodb

How to connect to MongoDB running in Docker container?


The problem was not related to Docker, but to the bindip in the configuration of MongoDB. See e.g., mongodb.conf bind_ip = 127.0.0.1 does not work but 0.0.0.0 works