MongoDB
 sql >> Database >  >> NoSQL >> MongoDB

Impossibile connettere Robomongo utilizzando l'immagine Docker MongoDB

Non dimenticare di mappare la porta sulla porta host:

docker run --name some-mongo -p 27017:27017 -d mongo

Allora

docker-machine ip

mi dà 192.168.99.100

Digita terminale

mongo 192.168.99.100

stampe

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]

Ho anche provato con robomongo. Posso connettermi senza problemi.