I am a software developer and work on Kubernetes based project.
I was given a Mac laptop when I joined. It was a few OS releases behind, because corporate IT didn’t support newer versions.
Macs have to run some sort of VM to do docker based development.
VMs are not that great.
When time came, I requested a Windows laptop. I installed Debian on WSL 2. Then got it to run systemd properly and installed Docker on WSL. Then vscode on windows host with remote ssh into WSL.
Vscode ssh integration is probably best least known feature of vscode. However, initial connection setup always requires tweaking to get that best experience.
By the way, official docker setup is through VM on windows. WSL is not a recommended route, but one can get it working.
This setup beats Mac any day for me.
I wish I could run Linux on work laptop, but corporate IT doesn’t know how to deal with it.
Vscode is installed on windows. Then you install vscode ssh plugin from Microsoft and open ssh connection from vscode to any Linux including WSL hosted Linux.