4 ms·
The major benefits over a fully managed VM from my exp. with it have been - easy integration with the Windows filesystem (it's automounted into the WSL env) -
by raesene9 6y ago
The major benefits over a fully managed VM from my exp. with it have been
- easy integration with the Windows filesystem (it's automounted into the WSL env)
- Using VS Code to work with files in the WSL2 env. works out of the box (just type `code .` in a WSL windows)
- It's very quick to spin up new WSL2 instances. you can just use `--import` and it'll bring in a tarball to create your new instance. You can even export a Docker image and use that as a WSL instance base filesystem which is handy.
- Docker for Windows works pretty well for most usecases and you get one shared Docker instance across all your WSL setups.
Sure I could do all that with discrete managed VMs but this is easier
- thawkins 6y agoDo you know if docker and minikube work inside wsl2? I loaned my only windows machine to a colleague and won't get it back for a week or two, otherwise I would check it out myself.
- raesene9 6y agoI've not tried it but I don't think minikube would work inside WSL as it needs a VM layer (I suppose technically it could with nested virtualization). TBH for throwaway Kubernetes cluster in WSL, I'd recommend kind (https://github.com/kubernetes-sigs/kind https://github.com/kubernetes-sigs/kind) it works just fine with WSL/Docker for Windows.
- jamesgeck0 6y agoDocker works inside WSL2; it's one of the improvements over WSL1 that MS has been touting.