You should be able to export it to disk with a "podman save" command. I haven't used WSL, but it's my understanding that they plumbed the native Windows file system into it, so when you save things with the WSL Linux kernel, it gets written directly into your windows world.

On Fri, Sep 18, 2020 at 11:58 AM Dev Linux <devlinuxnc@gmail.com> wrote:

If I pull a RHEL UBI image like so (On Windows using cygwin and podman),

$podman pull registry.access.redhat.com/ubi8/ubi

Is there a command I can run on the host system (Windows) to create a file on the host (Windows) that would be a rootfs.tar of the UBI image that was pulled?


I want to then use that rootfs.tar to run on the Windows host under WSL2.

If anyone has done this or if there is another way to fetch the UBI image as a rootfs.tar, it would be greatly helpful.


---

This is something I want to do regularly (pull the latest UBI image, on the day of each new update/release of the image), and run under Windows WSL2.


---

_______________________________________________
Podman mailing list -- podman@lists.podman.io
To unsubscribe send an email to podman-leave@lists.podman.io


--
--
A First Look at The Podman 2.0 API: http://crunchtools.com/a-first-look-at-the-podman-2-0-api/--
--
Scott McCarty
Product Management - Containers, Red Hat Enterprise Linux & OpenShift
Email: smccarty@redhat.com
Phone: 312-660-3535
Cell: 330-807-1043
Web: http://crunchtools.com