ip - Unable to connect to docker host when network changes -




here have 2 cases.

my office address 10.10.33.xx changing every day , home ip address 192.168.0.100/101/102

so want set single static ip both cases on windows 10

please suggest way handle this

thanks, kusuma

you communicate containers of links. example consider application mongo , node. can start mongo container with:

docker run --name mymongodb -d mongo 

start express app with:

docker run --express --link mymongodb:mongo  -p 8080:3000 -d username/express 

here in such system access containers alias mongo. access mongo container express with:

const dbhost = 'mongodb://mongo/mean-docker';  

this concept can scaled per need number of containers. solve problem of changing ip.





wiki

Comments

Popular posts from this blog

elasticsearch - what is the equivalent data type for geo_point in hibernate search? -

firebase - How to wait value in Ionic 2 -

Jenkins: find build number for git commit -