---
title: "Discussion on \"How to Configure a WSL2 Development Workspace: Ubuntu 20.04, Node.js, MongoDB, VS Code, and Docker\" | Hashnode"
description: "Discussion on \"How to Configure a WSL2 Development Workspace: Ubuntu 20.04, Node.js, MongoDB, VS Code, and Docker\". Previously, I wrote an article about setting up Windows 10 and Pop!_OS 20.04 on my system. I went on a rant and thought a \"dual boot\" setup was best for me—I was wrong.\nI have since then set up WSL2 on Windows 10 with Ubuntu 20.04 (Focal Fossa) and a..."
url: "https://hashnode.com/posts/wsl2-dev-setup-with-ubuntu-nodejs-mongodb-and-docker/5f6341c61d914f19b97dea24"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to Configure a WSL2 Development Workspace: Ubuntu 20.04, Node.js, MongoDB, VS Code, and Docker](https://mrugesh.dev/blog/wsl2-dev-setup-with-ubuntu-nodejs-mongodb-and-docker?utm_source=hashnode&utm_medium=feed)

Previously, I wrote an article about setting up Windows 10 and Pop!\_OS 20.04 on my system. I went on a rant and thought a "dual boot" setup was best for me—I was wrong. I have since then set up WSL2 on Windows 10 with Ubuntu 20.04 (Focal Fossa) and a...

Sep 17, 2020 · 11 min read · mrugesh.dev  
Updated Nov 7, 2023  
Read the article

-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#mongodb](https://hashnode.com/tag/mongodb)
-   [#docker](https://hashnode.com/tag/docker)
-   [#wsl](https://hashnode.com/tag/wsl)
-   [#ubuntu](https://hashnode.com/tag/ubuntu)

## Written by

[Mrugesh Mohapatra](https://hashnode.com/@mrugesh)

@mrugesh · Bengaluru, INDIA

  
[View profile](https://hashnode.com/@mrugesh)

dad • dev//ops • open-source

dad • dev//ops • open-source

## Responses 1

Markdown supported · ⌘↵ to post

[Yatrik Patel](https://hashnode.com/@ytrkptl)

[Dec 30, 2023](https://hashnode.com/posts/wsl2-dev-setup-with-ubuntu-nodejs-mongodb-and-docker/5f6341c61d914f19b97dea24/comment/659040b48b01e644a264ff12)

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

[Mrugesh Mohapatra](https://hashnode.com/@mrugesh)

[Jan 28, 2024](https://hashnode.com/posts/wsl2-dev-setup-with-ubuntu-nodejs-mongodb-and-docker/5f6341c61d914f19b97dea24/comment/659040b48b01e644a264ff12#reply-65b67a55eb0505dad5ecb47f)

Hi [Yatrik Patel](https://hashnode.com/@ytrkptl)!

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](https://hashnode.com/@ytrkptl)

[Jan 28, 2024](https://hashnode.com/posts/wsl2-dev-setup-with-ubuntu-nodejs-mongodb-and-docker/5f6341c61d914f19b97dea24/comment/659040b48b01e644a264ff12#reply-65b67f24b964bc360a465f1e)

Ok, thank you for the detailed answer [Mrugesh Mohapatra](https://hashnode.com/@mrugesh)
