Show dbs not returning anything in mongodb docker container

Viewed 13

I am not getting any database name after typing show dbs in mongo cell. here I have created the mongodb container using docker and below are the command I am using to get the mongo cell.

docker exec -it mongodb bash
/usr/bin/mongo $MONGO --ssl --sslAllowInvalidCertificates - -host 127.0.0.1 -u admin -p 'mypass’ --authenticationDatabase admin

after that when I am typing the below command to get all database.

> show dbs

But here I am not getting any result. Any quick support will be more appreciable.

0 Answers
Related