Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

How would I create a rootfs.tar from a UBI image #1

Open
devLinuxNC opened this issue Sep 18, 2020 · 2 comments
Open

How would I create a rootfs.tar from a UBI image #1

devLinuxNC opened this issue Sep 18, 2020 · 2 comments
Labels
question Further information is requested

Comments

@devLinuxNC
Copy link

devLinuxNC commented Sep 18, 2020

I have a question about how I could create a rootfs.tar from any RHEL UBI image release

I posted this on StackOverflow.

https://stackoverflow.com/questions/63958928/how-to-build-rootfs-tar-from-rhel-ubi-image-pulled-with-podman


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 (to create a physical file on my Windows PC), it would be greatly helpful.


Thank You

@yosukes-dev
Copy link
Owner

Commands like the following may be useful.
mkdir rootfs && docker export $(docker create <image>) | tar -C rootfs -xvf -

@yosukes-dev yosukes-dev added the question Further information is requested label Sep 27, 2020
@mauriliofilho
Copy link

I Follow this and work great!!
https://wsl.dev/mobyrhel8/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants