A dev environment for WSL2
- Build the image
docker build -t artix .
- Export the container
docker save artix -o ./artix.tar
- Create a new directory to store all the distros
mkdir c:\wsl
- Copy the .tar file into the distros directory
cp .\artix.tar c:\wsl\artix.tar
- Go to distros directory and create the new distro
cd c:\wsl
wsl.exe --import arch .\artix .\artix.tar
- Check that the distro has been correctly created
wsl.exe --list
- Run the newly created distro with the user created during the customization
wsl.exe -d artix --user justin