Coder Social home page Coder Social logo

OCI image source about image HOT 9 CLOSED

containers avatar containers commented on June 30, 2024
OCI image source

from image.

Comments (9)

alexlarsson avatar alexlarsson commented on June 30, 2024

I was just experimenting with skopeo, but the command above is copying from one OCI directory (which skopeo created) to another directory. Why should this not work?

from image.

runcom avatar runcom commented on June 30, 2024

Because we didn't implement that yet. Can't you just cp the directory? Do you have any hard requirement to do that here?

from image.

alexlarsson avatar alexlarsson commented on June 30, 2024

I was going to use skopeo to test OCI support for flatpak use, and this was just the minimal test i could come up with. What I really wanted was to take an OCI directory i've created and round-trip it to a docker registry and back to see how well that worked.

from image.

mtrmac avatar mtrmac commented on June 30, 2024

Yeah, it makes sense that containers/image should support this. I don’t personally know about priorities/timing though.

from image.

runcom avatar runcom commented on June 30, 2024

@mtrmac do you mean you're ok having an OCI image source based on directories? (and maybe later support remote images for OCI as well).
Implementing this for directories should be trivial afaict and I have some spare cycles if this is needed.

from image.

mtrmac avatar mtrmac commented on June 30, 2024

Well, to be precise: I haven’t paid enough attention to OCI to say how much (or whether) the OCI directory transport is useful. But it seems to me that if it is useful, both reading and writing is probably useful.

(I’d also like OCI to switch to the manifest support in c/i/image instead of hiding the conversions if possible; the write path was an useful stopgap but it would be nice not propagate that further.)

from image.

runcom avatar runcom commented on June 30, 2024

@mtrmac what do you mean by switch to the manifest support in c/i/image? Link to code?

from image.

mtrmac avatar mtrmac commented on June 30, 2024
  • Copy image/manifest_schema2.go to image/manifest_oci.go, edit suitably.
  • Implement types.Image.UpdatedImage(&types.ManifestUpdateOptions{ManifestMIMEType:} to convert at least between s2 and OCI, both ways, based on the existing oci_dest.go:createManifest code; then combine with existing s1<->s2 conversions to support any conversion between all three of s1, s2, OCI.
  • Drop the now redundant ad-hoc conversion in oci_dest.go:createManifest

from image.

hustcat avatar hustcat commented on June 30, 2024

@runcom @mtrmac I want to copy image from OCI layout directories to docker daemon after docker #26369.
So OCI image source based on directories is very useful. I'd like to implement it:)

from image.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.