0

I have mongod and docker running on a host. Within the container I want to access mongod but I get,

root@bac0e41ed475:/opt/test# telnet 10.1.1.1 27017
Trying 10.1.1.1 ...
telnet: Unable to connect to remote host: Connection refused

Am I missing something simple here ?

felix001
  • 15,341
  • 32
  • 94
  • 121
  • 1
    Show how you configured container's network. Did you check http://stackoverflow.com/questions/24319662/from-inside-of-a-docker-container-how-do-i-connect-to-the-localhost-of-the-mach ? – Alex Blex Feb 11 '16 at 13:05
  • Changing the mongodb instances to listen on 0.0.0.0 and changed it to connect to the docker0 ip worked for me – felix001 Feb 12 '16 at 08:03

0 Answers0