Windows WSL 2 Docker Tutorial

Published: 23 October 2022
on channel: 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


On this page of the site you can watch the video online Windows WSL 2 Docker Tutorial with a duration of hours minute second in good quality, which was uploaded by the user Emad Zaamout 23 October 2022, share the link with friends and acquaintances, this video has already been watched 14,757 times on youtube and it was liked by 268 viewers. Enjoy your viewing!