Connecting to Mongodb on your docker image

First, you must have docker and Mongosh (https://www.mongodb.com/try/download/shell) Then you start up your docker image with this command docker run --name mongo -p 27017:27017 -d mongo mongod Then to connect, run 'mongosh' - just press enter when prompt for connection string. You should be able to connect.

Comments

Popular posts from this blog

gemini cli getting file not defined error

NodeJS: Error: spawn EINVAL in window for node version 20.20 and 18.20

vllm : Failed to infer device type