Windows WSL 2 Docker Tutorial

Veröffentlicht am: 23 Oktober 2022
auf dem Kanal: Emad Zaamout
14,757
268

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


Auf dieser Seite können Sie das Online-Video Windows WSL 2 Docker Tutorial mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Emad Zaamout 23 Oktober 2022 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 14,757 Mal angesehen und es wurde von 268 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!