wsl镜像和docker互转(wsl可以直接运行docker镜像拉!)
Posted 20 months ago windows git linux bash wsl openrc
导出任意发行版的docker镜像
sudo service docker start
docker run -t alpine sh ls /
dockerContainerID=$(docker container ls -a | grep -i alpine | awk '{print $1}')
docker export $dockerContainerID > /mnt/c/temp/alpine.tar
导入任意发行版的rootfs(上面导出的就是)
wsl --import <Distro> <InstallLocation> <FileName>