Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FR: Support loading oci images from tarballs #413

Open
froody opened this issue Nov 9, 2023 · 3 comments · Fixed by #570
Open

FR: Support loading oci images from tarballs #413

froody opened this issue Nov 9, 2023 · 3 comments · Fixed by #570
Labels
question This is a question rather than a bug report or feature request

Comments

@froody
Copy link

froody commented Nov 9, 2023

I need an ubuntu image with some packages installed, so I use docker to build that image and export it as an oci image tarball. The problem is there's no clean way to use this with oci_image. My workaround is untaring the image, finding the layers I want, and manually adding them in the tars argument to oci_image but that's hard to automate. It would be much nicer if I could do oci_image(base=":my_oci_image.tar", ...)

@alexeagle
Copy link
Collaborator

I think most users do this by publishing their docker image to a registry and then using oci_pull. Would that work for you?

@alexeagle alexeagle added the question This is a question rather than a bug report or feature request label Nov 29, 2023
@thesayyn thesayyn changed the title Support loading oci images from tarballs FR: Support loading oci images from tarballs May 8, 2024
@thesayyn
Copy link
Collaborator

FWIW, builkit supports oci tarballs, which are tar'ed oci-layouts (our intermediate format) that can be extracted using BSDTAR toolchain.

@mering
Copy link
Contributor

mering commented Oct 18, 2024

This was possible in 1.x but is no longer possible in 2.x.

See #700 for additional information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question This is a question rather than a bug report or feature request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants