Prerequisitos
- Windows 10 >= 21H2, o Windows 11 >= 21H2
- WSL 2 feature on Windows Microsoft documentation.
- Una distro de linux instalada en el WSL2. Recomendable Ubuntu
Turn on Docker Desktop WSL 2
- Navigate to Settings.
- From the General tab, select Use WSL 2 based engine..
Enabling Docker support in WSL 2 distros
Check WSL mode:
wsl.exe -l -v
Set Version:
wsl.exe --set-version ubuntu 2
Opcional: Setear la distro por defecto de WSL
wsl --set-default <distro name>
Develop with Docker and WSL 2
- Instalar extensión Remote - WSL