/arch-dev

My Arch Linux set-up for WSL2

Primary LanguageDockerfile

A dev environment for WSL2

Setup the docker container as a WSL2 Instance

  1. Build the image
docker build -t artix .
  1. Export the container
docker save artix -o ./artix.tar
  1. Create a new directory to store all the distros
mkdir c:\wsl
  1. Copy the .tar file into the distros directory
cp .\artix.tar c:\wsl\artix.tar
  1. Go to distros directory and create the new distro
cd c:\wsl

wsl.exe --import arch .\artix .\artix.tar
  1. Check that the distro has been correctly created
wsl.exe --list
  1. Run the newly created distro with the user created during the customization
wsl.exe -d artix --user justin