Using mongo client from docker container
I do not have locally installed mongo and I run most of the DBs clients apps in containers, e.g. redis-cli, mongo, psql, etc. I tried to set Mongo Path to the following value "docker run mongo mongo" in bdKoda but it fails with the following error:
Failed to update config: {"config.mongoCmd":"\u001b[31mCommand failed: \"docker run mongo mongo\" --version\n/bin/sh: docker run mongo mongo: command not found\n\u001b[39m"}
And here is what I get when I run it in the shell:
$ docker run mongo mongo --version
MongoDB shell version v3.6.3
git version: 9586e557d54ef70f9ca4b43c26892cd55257e1a5
OpenSSL version: OpenSSL 1.0.1t 3 May 2016
allocator: tcmalloc
modules: none
build environment:
distmod: debian81
distarch: x86_64
target_arch: x86_64
Am I using wrong value for Mongo Path or running mongo client in container is not supported at all?
Hi Vladimir,
First up thanks for trying dbKoda and providing us with some feedback.
At the moment dbKoda doesn't support running the mongo client from a container, but it's something we've been wanting to add for a while, so with your request we've got a great excuse to prioritize this work! I've added the task to our next release and I'll update this ticket once it's available for you to download :)
Kind Regards,
Mike from dbKoda.
Thank you for the answer. Will wait for the update.
I'm very interested in this as well! I use docker to manage many different mongo environments for multiple clients. Your client is amazing so I'll be checking back on progress for this request! Keep up the good work!
Hi guys,
We've just released version 1.0 of dbKoda, including support for Docker! The full list of additions can be seen here: https://medium.com/dbkoda/dbkoda-1-0-is-released-w00t-45ea64f25a13
You can get the latest version of the App from http://www.dbkoda.com.
Cheers,
Mike from dbKoda.
I'm trying v1.0 with docker, set mongo:3.4 as the image, but still get the shell error.
Here is my Paths screen:
My ~/.dbKoda/config.yml file contents:
user:
id: MDovsh3012vDtFhvYvq~~
mongoCmd: null
drillCmd: null
drillControllerCmd: null
mongoVersionCmd: null
mongoexportCmd: null
mongoimportCmd: null
mongodumpCmd: null
mongorestoreCmd: null
telemetryEnabled: true
showNewFeaturesDialogOnStart: true
tableOutputDefault: true
automaticAutoComplete: true
showWelcomePageAtStart: true
passwordStoreEnabled: false
dockerEnabled: true
docker:
createNew: true
imageName: 'mongo:3.4'
containerID: ''
hostPath: ''
containerPath: ''
mongoCmd: 'docker run -it --rm mongo:3.4 mongo'
mongorestoreCmd: 'docker run --rm mongo:3.4 mongorestore'
mongodumpCmd: 'docker run --rm mongo:3.4 mongodump'
mongoexportCmd: 'docker run --rm mongo:3.4 mongoexport'
mongoimportCmd: 'docker run --rm mongo:3.4 mongoimport'
mongoVersionCmd: 'docker run mongo:3.4 mongo --version'
performancePanel:
preventDisplaySleep: false
metricSmoothingWindow: 6
foregroundSamplingRate: 5000
backgroundSamplingRate: 15000
historySize: 720
historyBrushSize: 30
alarmDisplayingWindow: 60000
maxOutputHistory: 1000
Error when I test connection:
And error when I try to Connect:
Image exists locally:
$ docker run mongo:3.4 mongo --version
MongoDB shell version v3.4.15
git version: 52e5b5fbaa3a2a5b1a217f5e647b5061817475f9
OpenSSL version: OpenSSL 1.0.1t 3 May 2016
allocator: tcmalloc
modules: none
build environment:
distmod: debian81
distarch: x86_64
target_arch: x86_64
Yaml formatting got broken, but "code" button simply does not work for me in this editor - page get blurred and nothing happens untill I press ESC.
Comments have been locked on this page!