-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add Docker exporter #228
Add Docker exporter #228
Conversation
2ad7f24
to
c3cfae4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SGTM, but containerd/CRI-containerd Docker v1 importer does not support loading this manifest yet: https://github.com/kubernetes-incubator/cri-containerd/blob/b88315707238082397a9475af0663bd1c432b7a3/pkg/containerd/importer/importer.go#L55-L65
@AkihiroSuda We should create an issue to get this fixed. |
This PR sets "org.opencontainers.image.ref.name" to "docker.io/library/myimage:latest", but AFAIK most implementation does not expect |
For Docker v1 manifest.json, can we allow setting multiple repotags? |
Don't they expect a valid reference there? I'd think
The format supports them but we would need a way to pass that with exporter opts. Is it a common use case? |
Having a valid reference is 100% correct, but not "common": https://github.com/opencontainers/image-spec/blob/7c889fafd04a893f5c5f50b7ab9963d5d64e5242/image-layout.md
So, having a reference value is likely to cause compatibility issues with other OCI implementations. (Such implementations should be blamed though 😄 ) |
I think I misunderstood the meaning of |
566344d
to
c9778ab
Compare
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
c9778ab
to
85c0f99
Compare
Updated |
The exported tarball is compatible with Docker v1.10 and newer. Older versions that only accept the
v1.0
tarball will not work.The tarball is also fully compatible with OCI. We can figure out later if containerd upstream is also interested of any of this code and in what way and what packages should contain what code(related to #215). My current thinking is that special package for
exporter/oci
is not needed and different variants can all be undercontainerimage
.based on #227