Skip to contentSkip to conversation

OCI image .tar installation

DISCUSSION Jorge C. 2 participants 2 messages Jan 16, 2025 – Jan 17, 2025

lore
Share & tools
lore

Jorge C.

author
#0 lore raw

Hi all,

I'm looking to install a .tar file that contains a container image into the rootfs; this .tar being a product of a podman pull/podman save commands.
I've been going through the threads in the mailing list and watched some of the talks and demos about this but have not been able to figure it out and I was hoping I could find some guidance here.

So far, I've created a recipe that attempts to:
1. podman pull a group of images I have declared in a manifest.
2. podman save the images to produce the .tar.
3.  Install the .tar along with a docker-compose.yml; on boot a service loads the containers from the .tar.

The problem is that podman is not found and the tasks fail.
I've been following the meta-embedded-containers repo ( https://github.com/savoirfairelinux/meta-embedded-containers/tree/main ) , but I would like to avoid passing podman through HOSTTOOLS.

As I understand, using docker is not an option because it's not a native package, which is why I'm leaning for podman. Does someone know of another approach for copying the OCI image onto the directory?

Thanks.
Jorge

#1 lore raw
Quoted 21 lines · Jorge C. via lists.yoctoproject.org

Hi all,

I'm looking to install a .tar file that contains a container image into the rootfs; this .tar being a product of a podman pull/podman save commands.
I've been going through the threads in the mailing list and watched some of the talks and demos about this but have not been able to figure it out and I was hoping I could find some guidance here.

So far, I've created a recipe that attempts to:
1. podman pull a group of images I have declared in a manifest.
2. podman save the images to produce the .tar.
3. Install the .tar along with a docker-compose.yml; on boot a service loads the containers from the .tar.

The problem is that podman is not found and the tasks fail. I've been following the meta-embedded-containers repo
<https://github.com/savoirfairelinux/meta-embedded-containers/tree/main>,
but I would like to avoid passing podman through HOSTTOOLS.

Quoted 5 lines

As I understand, using docker is not an option because it's not a native package, which is why I'm leaning for podman.
Does someone know of another approach for copying the OCI image onto the directory?

I won't elaborate here, but if you search the list archives, we've discussed this several times (as you mentioned).

As part of the upcoming LTS release, I'm going to complete my long-running efforts for cross install of containers for all the supported runtimes. Both podman and docker. That includes working native tools to manipulate the container storage on the image.

Cheers,

Bruce

Quoted 16 lines

Thanks.
Jorge

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#9094):
https://lists.yoctoproject.org/g/meta-virtualization/message/9094
Mute This Topic: https://lists.yoctoproject.org/mt/110655785/1050810
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end
- "Use the force Harry" - Gandalf, Star Trek II