mongo: command not found on mongodb 6.0 docker container

Viewed 1979

After installing the latest mongo docker images through

docker pull mongo:latest

docker run --name mongo -d mongo:latest

Then enter into this docker container and run mongo

docker exec -it mongo /bin/sh
# mongo
/bin/sh: 2: mongo: not found

# env
HOSTNAME=2ffb8dac9717
HOME=/data/db
TERM=xterm
MONGO_PACKAGE=mongodb-org
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
MONGO_MAJOR=6.0
JSYAML_VERSION=3.13.1
GOSU_VERSION=1.12
MONGO_REPO=repo.mongodb.org
PWD=/
MONGO_VERSION=6.0.1

After checking the /usr/bin folder, there is no mongo under it. Is there anything missing here? How to run mongo shell in mongodb 6.0 docker?

1 Answers
Related