Sign in
Log inSign up
Mrugesh Mohapatra

46 likes

·

7.6K reads

3 comments

Yatrik Patel
Yatrik Patel
Dec 30, 2023

Hi Mrugesh, after this setup, are we expected to be able to run something like "mongo --version" from the wsl2 ubuntu terminal succesfully?

·
·2 replies
Mrugesh Mohapatra
Mrugesh Mohapatra
Author
·Jan 28, 2024

Hi Yatrik Patel!

It depends if you have the mongo client CLI tools installed within the distro (what you are referring to as WSL2 Ubuntu).

I understand you would have installed MongoDB on the Windows side following the guide? And done nothing within the Ubuntu side. In that case no, you will not have any mongo client CLI stuff available.

The container is the DB "backend" which is running within a Docker environment on Windows side and the command "mongo --version" needs the the mongo client tools to be installed on the Ubuntu side.

Even then after installing it you will need to provide a connection string and so on. In simple terms you will end up with a setup where the MongoDB is "running on a server" that happens to be the same physical machine but the Ubuntu side can not connect to it without you giving it the information it needs.

Cheers.

·
Yatrik Patel
Yatrik Patel
Jan 28, 2024

Ok, thank you for the detailed answer Mrugesh Mohapatra

·