Comments (9)
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.
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.
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.
Yeah, it makes sense that containers/image should support this. I don’t personally know about priorities/timing though.
from image.
@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.
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.
@mtrmac what do you mean by switch to the manifest support in c/i/image? Link to code?
from image.
- Copy
image/manifest_schema2.go
toimage/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 existingoci_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.
@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)
- Allow referring images in oci: (and oci-archive: ?) by manifest digest HOT 8
- Disable Dependabot filing version updates HOT 2
- Add support for OCI artifacts “attached” to an image via `subject` HOT 3
- `GetDigest` could skip API call when passed a digest HOT 1
- Ambiguous discussion of detached signature in containers-signature.5.md HOT 3
- Decide on a `dir:` compatibility guarantee, if any, and a format transition plan, if any HOT 10
- `dir:` sources don’t reject unknown versions
- Image Copy looses layer annotations when reusing blob HOT 7
- Image upload fails if PATCH lasts longer than expiry time of an OAuth token HOT 3
- Copy with encryption does not trigger a required conversion when the destination accepts all manifest formats HOT 1
- issues about copy with encryption/decryption for docker image format HOT 3
- Non-digested containers-storage references should resolve to the manifest that exists HOT 1
- Consider copying associated cosign artifacts HOT 1
- Fails to pull image from Quay Enterprise with auth and proxy storage enabled HOT 1
- Sigstore: allow registry substitution for `signedIdentity`. HOT 5
- Sigstore: Signed manifest list does not find signature HOT 2
- Can the server be upgraded to TLS1.2? HOT 2
- http auth scope parsing fails with multiple scopes HOT 7
- Creation of Zstd:chunked layers seems racy HOT 2
- Docs unclear about whether ostree is default HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from image.