umoci icon indicating copy to clipboard operation
umoci copied to clipboard

support pulling images with OCI Distribution Spec API

Open AkihiroSuda opened this issue 4 years ago • 3 comments

@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 avatar Jul 29 '20 16:07 AkihiroSuda

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

AkihiroSuda avatar Jul 29 '20 16:07 AkihiroSuda

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.

cyphar avatar Jan 18 '21 01:01 cyphar

related: https://github.com/opencontainers/tob/pull/68#issuecomment-766935743

jdolitsky avatar Jan 27 '21 20:01 jdolitsky