You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docker run --name mongo1 -h mongo1.mongo.dev.docker -p 27017:27017 -d mongo
Spring boot app container
docker run --name templatengine -h templatengine.template.dev.docker -d template
Now, the spring app uses a mongo db.so i set host in code to mongo1.mongo.dev.docker,but it keeps timing out, without connecting.
Running dig @172.17.42.1 +short mongo1.mongo.dev.docker returns the appropriate IP.
I also tried linking the containers,but to no avail.
docker run --name templatengine -h templatengine.template.dev.docker --link mongo1:mongo1 -d templat
Any help is much appreciated.
The text was updated successfully, but these errors were encountered:
samaddico
changed the title
Docker domain name not accessible from application code
Docker container domain name not accessible from application code
Jul 8, 2015
So following setup documentation on
https://github.com/crosbymichael/skydock, i got this running and working fine
I created 2 containers
mongo container
Spring boot app container
Now, the spring app uses a mongo db.so i set host in code to
mongo1.mongo.dev.docker
,but it keeps timing out, without connecting.Running
dig @172.17.42.1 +short mongo1.mongo.dev.docker
returns the appropriate IP.I also tried linking the containers,but to no avail.
docker run --name templatengine -h templatengine.template.dev.docker --link mongo1:mongo1 -d templat
Any help is much appreciated.
The text was updated successfully, but these errors were encountered: