This is awesome! I was just today building a new wsl distro, and I didn’t want it tied to just a version of Linux but rather a project. I had to download a rootfs of Ubuntu and import it, and then spent time installing everything. Ofc I could use a bash script to automate the second part.
So this would have solved my prob: have a dockerfile or image and up an wsl env for it. Given how great wsl is these days (i used to have Linux and Mac as daily drivers, now wsl) I guess this sort of thing will become more and more relevant
So I had this in my head for a long time, that I can just build a rootfs using docker and load it in WSL.
I tried it yesterday, and now I have a CLI tool to build my WSL image using Dockerfiles.
I'm not sure if it helps anyone, but I wanted to share it, just in case.
Cheers.