Since the WSL, basically the virtual machine has been saved, for the convenience of Windows, Linux for the development of friendly people, is really a big weapon. Unfortunately, the default system does not have CentOS, and fortunately, Daniel has developed a way to use Docker images to run other Linux distributions. Here are the detailed steps.First turn on the Linux subsystem feature
This step of the online tutorial a lot, I will not say.Install a default Linux system
Ubuntu can be selected at WIN10 's own software centerWsl-distribution-switcher
python get-source.py centos:latest, you can go to Dockerhub to see the specific tag.
python install.py centos:latest. Some images are in SQUASHFS format, this time to install the relevant Python plug-in, that is
pip3 install PySquashfsImage
Use Python switch.py release Name: Version label to switch to the desired version, such as Python switch.py centos:latest
Windows installation CENTOS7 Subsystem