-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
cmd/load: ability to load from oci layout #2626
Comments
Is there some source that can only produce OCI? ko also supports docker tarballs instead of OCI. Note that loading is performed in containerd / ctr. kind only streams the tarball and makes some minor optimizations. It is important that we minimize the dependencies in the kind source code for embedding e.g. in cluster-api, this would probably have to be done as a feature to ctr. |
Let me ping @estesp @crosbymichael. Hey! If does it make sense, We'd like to move this issue as a new feature proposal into containerd/ctr. I'm not so familiar with ctr domain, so maybe you can help us point in the right direction. |
Is that sufficient for what you are looking for or did I misunderstand what you want to add to |
Oh, thanks! Missed that. In this case, we can easily add a new func LoadImageFromDir(n nodes.Node, imageDir string) error {
...
cmd := n.Command("ctr", "--namespace=k8s.io", "images", "import", imageDir)
...
} As it already describes in import.go. UX would be:
We can get to it if does it make sense. :) |
I don't think it will be quite as easy as you say, with image tarballs we are piping in a file not a directory. ctr does not have host filesystem access in this case. The use case question remains:
|
Yeah, I don't know of any tools off the top of my head that can only produce OCI layouts. One nice thing that would enable though is being able to load multiple images in one command, since an OCI layout directory can describe many images. The typical use case for OCI layouts lately has been as the format for carrying multiple images into a cluster across an airgap. So you could |
This is also true of a docker archive tarball from |
AIUI OCI-layout is a directory structure, so it's pretty unclear how we'd plumb that through. Existing I need to look more at the layout format or seek advice :-) |
What would you like to be added:
Currently, we can load images from tar files or directly a docker image as follows:
We can also add an
oci-layout
command here to load an image directly from a folder. As a workaround, we have to do:vs.
To export your image as an oci-layout, ko have a support for that, for example.
Why is this needed:
To support OCI image layout.
cc @developer-guy @imjasonh
The text was updated successfully, but these errors were encountered: