java vscode remote dev setup windows 11 wsl2 docker desktop

Posted by Swapan Chakrabarty on December 28, 2021

upgrade to Windows 11 and install wsl and ubuntu using commands below

  • open command prompt in admin mode
1
2
wsl --install
wsl --install Ubuntu-20.04

install vscode and remote development extension

install remote development vscode

install docker desktop on windows 11

docker desktop install

Connect to Docker in WSL Ubuntu via vscode

ctrl + shift + P to open command pallete
type 'wsl'
click on 'new wsl window'

open new wsl window

open a bash terminal in WSL in vscode

open bash terminal

Verify that docker is accessible via WSL ubuntu terminal in vscode

vscode terminal