MongoDB
 sql >> Base de Dados >  >> NoSQL >> MongoDB

Não é possível conectar o Robomongo usando a imagem do docker MongoDB


Não se esqueça de mapear a porta para a porta do host:
docker run --name some-mongo -p 27017:27017 -d mongo

Então
docker-machine ip

me dá 192.168.99.100

Digite no terminal
mongo 192.168.99.100

impressões
MongoDB shell version: 3.2.4
connecting to: 192.168.99.100/test
Server has startup warnings: 
2016-08-22T07:35:20.214+0000 I CONTROL  [initandlisten] 
2016-08-22T07:35:20.214+0000 I CONTROL  [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/enabled is 'always'.
2016-08-22T07:35:20.214+0000 I CONTROL  [initandlisten] **        We suggest setting it to 'never'
2016-08-22T07:35:20.214+0000 I CONTROL  [initandlisten] 
2016-08-22T07:35:20.214+0000 I CONTROL  [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/defrag is 'always'.
2016-08-22T07:35:20.214+0000 I CONTROL  [initandlisten] **        We suggest setting it to 'never'
2016-08-22T07:35:20.214+0000 I CONTROL  [initandlisten]

Também testei com robomongo. Consigo conectar sem problemas.