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

support pulling images with OCI Distribution Spec API #345

Open
AkihiroSuda opened this issue Jul 29, 2020 · 3 comments · May be fixed by #359
Open

support pulling images with OCI Distribution Spec API #345

AkihiroSuda opened this issue Jul 29, 2020 · 3 comments · May be fixed by #359

Comments

@AkihiroSuda
Copy link
Member

@cyphar Any reason not to have support for pulling OCI images directly without skopeo?

e.g.

$ skopeo copy docker://alpine:latest oci:/tmp/alpine:latest
$ umoci unpack --image /tmp/alpine /tmp/alpine-bundle

could be written as

$ umoci unpack --image docker://alpine:latest /tmp/alpine-bundle
@AkihiroSuda
Copy link
Member Author

This could be implemented just like if strings.HasPrefix(imagePath, "docker://") { execSkopeoBinary(...) } if we don't want to have registry code in this repo.

@cyphar
Copy link
Member

cyphar commented Jan 18, 2021

Yeah originally this wasn't implemented because distribution-spec wasn't finalised at the time (and we had various alternative approaches being discussed at the time). This could be implemented fairly easily by implementing a "remote CAS" interface, though I imagine we'd want something more clever if people are going to use it fairly often. Also there's the question of whether ORAS is going to replace skopeo as the standard "pull an OCI image" tool.

@jdolitsky
Copy link
Member

related: opencontainers/tob#68 (comment)

@jdolitsky jdolitsky linked a pull request Feb 8, 2021 that will close this issue
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

Successfully merging a pull request may close this issue.

3 participants