instance running on the host in the docker container?
I tried with mongod listening on 0.0.0.0 and 127.0.0.1,172.17.0.1. I can ping 172.17.0.1 from the container but connections to 172.17.0.1:27017 keep timing out
your mongo is running on the host & you want to connect to it from within a container?
because the networks are isolated although a Docker container can ping internet facing IPs (due to a DNS resolver address copied onto the container on creation ).
Обсуждают сегодня