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

umoci unpack doesn't work generated with Skopeo OCI transport #136

Closed
giuseppe opened this issue Jul 4, 2017 · 3 comments
Closed

umoci unpack doesn't work generated with Skopeo OCI transport #136

giuseppe opened this issue Jul 4, 2017 · 3 comments

Comments

@giuseppe
Copy link
Member

giuseppe commented Jul 4, 2017

here a simple reproducer. The error seems to be caused by not having a refs directory in the fetched image.

$ skopeo copy docker://busybox:latest oci:busybox:latest
Getting image source signatures
Copying blob sha256:27144aa8f1b9e066514d7f765909367584e552915d0d4bc2f5b7438ba7d1033a
 624.00 KB / 682.85 KB [==================================================>----]
 682.85 KB / 682.85 KB [=======================================================]Copying config sha256:74c4af6c88707fb5b27aab24c5b3425a090e4a2f299df6e28f6894c8a529516a
 0 B / 575 B [-----------------------------------------------------------------]
Writing manifest to image destination
Storing signatures

$ ls busybox/
blobs  index.json  oci-layout

$ umoci unpack --image busybox:latest extracted
   ⨯ open CAS: validate: check refdir: invalid image detected
@cyphar
Copy link
Member

cyphar commented Jul 4, 2017

@giuseppe That's because umoci currently doesn't support 1.0.0-rc5 of the image-spec. I have a PR open that should fix this (#133) but there are several higher level design issues I need to work out before we merge it.

If you use skopeo 0.1.19 or earlier it will work.

@yuvipanda
Copy link

Can confirm this works in master now.

@cyphar
Copy link
Member

cyphar commented Jul 17, 2017

Yeah, this was fixed with #133 and then subsequently #143 for 1.0.0-rc7 of the image-spec.

@cyphar cyphar closed this as completed Jul 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants