Creating rootfs.tar.gz for WSL

After searching for a ridiculously long time, this is easy with Docker:

docker pull centos:7
docker run --name export_img centos:7 bash

docker export export_img -o rootfs.tar
gzip rootfs.tar