简体   繁体   中英

Requests to docker-machine created boot2docker host

For fast development purposed I spin a MongoDB container on boot2docker on the standard MongoDB port and then I just connect to the database on the boot2docker ip on that port. Currently its

192.168.59.105:27017

With docker-machine I created a new boot2docker s named "host" which has the ip 192.168.99.113 where I installed docker-compose to spin MongoDB + a data container. But contrary to the default boot2docker, I cant seem to connect to Mongo on that machines ip (I get the ip with docker-machine ip host )

192.168.99.113:27017

In this case I don't get a connection, I don't even see the MongoDB warning message when I put that address on Chrome. Am I missing some critical configuration step to make this happen?

在您的docker-machine名称为host VirtualBox中为端口27017创建端口转发。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM