docker创建的mongodb无法连接

Kewen Mai shared this question 7 months ago
Need Answer

1.环境:Mac + dbKoda: v1.0.1

2.本地相关配置:/56e9ec85b61762b88f41f13bcdbb25f9

/8bf94b0eec7d5c26cdf7ef01fa1c75aa


3.config.yml文件配置:

user:

id: s~4~roeFZYq7YAHBFF6f2

mongoCmd: null

drillCmd: null

drillControllerCmd: null

mongoVersionCmd: null

mongoexportCmd: null

mongoimportCmd: null

mongodumpCmd: null

mongorestoreCmd: null

telemetryEnabled: false

showNewFeaturesDialogOnStart: true

tableOutputDefault: true

automaticAutoComplete: true

showWelcomePageAtStart: true

passwordStoreEnabled: false

dockerEnabled: true

docker:

createNew: false

imageName: mongo

containerID: cf51cf363c9a

hostPath: ''

containerPath: ''

mongoCmd: docker exec -it cf51cf363c9a mongo

mongorestoreCmd: docker exec cf51cf363c9a mongorestore

mongodumpCmd: docker exec cf51cf363c9a mongodump

mongoexportCmd: docker exec cf51cf363c9a mongoexport

mongoimportCmd: docker exec cf51cf363c9a mongoimport

mongoVersionCmd: docker exec cf51cf363c9a mongo --version

performancePanel:

preventDisplaySleep: false

metricSmoothingWindow: 6

foregroundSamplingRate: 5000

backgroundSamplingRate: 15000

historySize: 720

historyBrushSize: 30

alarmDisplayingWindow: 60000

maxOutputHistory: 1000


4.Error: Creation of shell connection failed. Unable to detect your mongo binary.

Please make sure the Mongo shell is in your path, or define path to mongo shell in the Preferences Panel.(Refer to this doc for details)

/28ce01e662ba6882b3d026ed06adf1f4


=> 试过以下连接工具:

(1)Robo 3T:配置简单,指定localhost和端口27017,即可连接docker的mongodb

(2)Studio 3T:配置简单,指定localhost和端口27017,即可连接docker的mongodb

(3)NoSQLBooster for MongoDB:配置简单,指定localhost和端口27017,即可连接docker的mongodb


dbKoda界面不过,这是我想尝试使用的原因,不过配置麻烦。

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000}span.s1 {font-variant-ligatures: no-common-ligatures}

Comments (1)

photo
1

感谢您尝试dbKoda,对你所遇到的问题,我们表示抱歉。能否麻烦您再试一下我们1.1 beta的版本?https://github.com/SouthbankSoftware/dbkoda/releases/tag/1.1rc9