Issue at Docker Hub for percona-server-mongodb

Docker Hub for percona-server-mongodb currently states:

Connect to Percona Server for MongoDB from the MongoDB Command Line Client

docker run -it --link container-name --rm percona/percona-server-mongodb:tag mongo -h container-name

But mongo is not found. Maybe it should be mongosh?

Sadly, I can’t open an issue at percona-docker/percona-server-mongodb-8.0 at main · percona/percona-docker · GitHub

Hi @bluepuma77 ,

It’s mentioned in the documentation that we need to use mongosh for Percona Server Mongodb 6.0+ and onwards:

For Percona Server for MongoDB 6.0+ and onwards, the mongosh command line client is used. To connect to it, run the command as follows

docker run -it --link psmdb --rm percona/percona-server-mongodb:6.0 mongosh mongodb://MONGODB_SERVER:PORT/DB_NAME

So, please try using mongosh. Thank you.

1 Like

We are at version 8 now. For user convenience, it probably makes sense to have a correct command line example with mongosh for current versions.

Maybe add a note below that with version 5 and below the command mongo has to be used.

Thanks for the feedback. We’ll make sure to pass this along to the documentation team.