Windows WSL 2 Docker Tutorial

preview_player
Показать описание
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

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

Follow us

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
Рекомендации по теме
Комментарии
Автор

I've been trying to figure this out on my own for about 5 hours of time. You got me going in one video. Well put together tutorial that even got me going on Windows 10. Thank you!

JoeKnowsGames
Автор

In my VS Code, I cannot find WSL extension. I uninstalled and reinstalled VS Code, I still cannot find WSL extension. Does anyone know has WSL extension for VS Code has been renamed?

sorcererstone
Автор

Does this work without docker desktop? just using the docker engine

LindenMikus
Автор

Is a docker desktop needed? I'd like to avoid it as I've read its annoying...

lenka
Автор

Can I install a WSL on D disc and it still will works?

karlson
Автор

is composer install and npm not needed?

jamols
Автор

Thanks you very much, love from Pakistan. Please make more videos complete setup on window docker ngnix with multiple container .

wariszargar
Автор

i'am error
chown: invalid user: ‘emad:emad’

superlay