Windows WSL 2 Docker Tutorial

Emad Zaamout
Emad Zaamout
13.9 هزار بار بازدید - 2 سال پیش - To run Docker on Windows,
To run Docker on Windows, there’s few ways. You can either run it using the Docker legacy Hyper-V backend, or you can use WSL 2 which offers much better performance and stability.

What is Windows Subsystem for Linux (WSL2)?

The Windows System for Linux (WSL) lets you run a Linux environment directly on windows without needing to use virtual machines or dualboot setup. This allows you to fully take advantage of Linux directly on your Windows machine. Its faster and it consumes less resources than running a virtual machine.

Its integrated, meaning that you can directly access all your files on your Windows machine.

If you’re planning to run Docker on Windows, then its highly recommended you use WSL 2 for your Docker Desktop backend as users can leverage Linux workspaces and avoid having to maintain both Linux and windows build scripts.

It also provides a much faster experience when using Docker. Without WSL 2, just starting docker takes almost up to minute, while with WSL 2, it takes less than 10 seconds.

How to install WSL 2
https://learn.microsoft.com/en-us/win...

.wslconfig File
memory=4GB
processors=2
swap=8GB

blog post https://www.ahtcloud.com/windows-wsl-...

wanna help support my channel ? buy me a coffee ☕️ https://www.buymeacoffee.com/emad.zaa...

Follow us
Github -  https://github.com/emad-zaamout

Chapters
0:00 Introduction
0:23 What is WSL 2?
1:08 Installing WSL 2 on Windows 11.
2:16 wslconfig
3:43 Starter Commands
6:16 Installing Docker on Windows 11
6:54 Docker - Enable WSL 2
7:25 VS Code WSL Plugin
8:24 How to use Docker on Windows 11
2 سال پیش در تاریخ 1401/08/01 منتشر شده است.
13,902 بـار بازدید شده
... بیشتر