Docker Community Forums

Share and learn in the Docker community.

Dockerfile to install Windows, VS2019 Build Tools, WSL2

I have just created a development environment in VMware. It is Win10 with VS2019 and WSL2. We use IBM Rhapsody in Windows to auto generate the source code and makefile directly into the linux filesystem, WSL2 Ubuntu-20.04. Rhapsody triggers the build remotely (ssh to
hostname wsl - so that make is performed natively on WSL ubuntu. I now want a similar environment for my Azure CI/CD build server. The build server uses docker and is constructed via a dockerfile. My dockerfile can install Win10 and VS build tools but how would it install WSL2? For the VMware dev env VM I manually installed WSL ubuntu using The docker-based build server is torn down after the build has finished. Is it possible? Any pointers appreciated.