
Docker desktop ubuntu windows#
I highly recommend you start by installing the Windows Terminal.

OK - now that we know what WSL is, let's get going with installing it, specifically WSL2 and a dev-stack including Node.js, MongoDB, etc.
Docker desktop ubuntu windows 10#
Note: Most Windows 10 editions including Windows 10 Home is eligible for installing WSL2 and Docker Desktop. It is recommended to keep project files on GNU/Linux side if you are going to be using WSL2. The Windows file system is accessible via WSL in both versions. Hosting a SaaS application is an example of this use case. Meaning if you need a GNU/Unix dev environment without needing to share anything on the Windows host, WSL2 is a good option. Use WSL2 if you are developing for end targets like servers (which often run on GNU/Linux). WSL1 is faster with cross system file access.
Docker desktop ubuntu code#
Use WSL1 if you need to "share" source code and files between Windows and GNU/Linux. Here is a comparison of use cases for both. Note: The WSL2 kernel comes with some caveats we will discuss later.īoth WSL1 and WSL2 have their own real-world applications. Meaning, if you have a multi-boot setup, you can access the file system of any other OS by mounting its partition within WSL2. WSL2 also lets you mount additional file systems. Most notably, WSL2 ships a "Full Linux Kernel", based on the same Linux kernel that powers billions of devices worldwide. It's literally a VM, that happens to be running like a native app on Windows, with its own networking and access to most system hardware. It's a new architecture which uses a subset of the Hyper-V technology, to enable a certain degree of virtualization. WSL2 is a lightweight "Virtual Machine", without the cruft. Think of it being conceptually similar to an interpreter between two leaders from different countries who don't speak a common language. It's not the same Linux kernel, but it's a very close match.Įnough "shim" for both the worlds to work together. It's an attempt to map system calls from GNU/Linux to their Windows equivalents. WSL1 is an abstraction with no virtualization and direct access to some system hardware. WSL comes in two flavors, version 1 and 2. OK - I have seen WSL1 & WSL2 being discussed in the wild? What's the difference? Windows Subsystem for Linux (WSL) is a Windows 10 feature which lets you use a GNU/Linux environment on top of Windows.įollow along this dev-log and you will be able to run Ubuntu 20.04 like any another app on Windows. Fair warning, this is an over simplification of the technical docs, for your benefit: Let's start with a quick segue to understand WSL a bit.

It gives quick me access to projects for demos, PR reviews, etc. I liked the idea of testing my skills for configuring such a setup. Docker Desktop for Windows with WSL2 as a Backend.Turns out, I also setup WSL2 on Windows 10 with Ubuntu 20.04 (Focal Fossa), and a dev-stack that includes: A few days ago, I wrote an article, about setting up Windows 10 and Pop!_OS 20.04 on my system.ĭual boot is easier and makes sense for me.
