rhel8 distro for wsl2.
minimal rhel8 + podman
+ "wsl" user with sudo
access.
- Download and extract the release zip.
- Run the
install.bat
script.
NOTE: If rhel8
distro already exists, it will be REMOVED.
The script will warn you before doing so.
You'll need docker
or podman
.
- Check out the source code and run
./bin/release
- Copy the zip from
dist
to windows, extract it, and runinstall.bat
If you've got Docker, but can't run bash
scripts, you can still manage.
You just need to copy the process from ./bin/build
and ./bin/export
.
You can either:
-
Fork this repo and add your own modifications.
-
Pull this image into your own
Dockerfile
i.e.
FROM ghcr.io/kmmiles/rhel8-wsl
WSL2 distributions are really just containers. We build a container of our liking with docker
, then export the rootfs as a tarball.
Then this tarball can be imported as a WSL distribution with wsl.exe --import
.