-
Notifications
You must be signed in to change notification settings - Fork 34
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 layer names in inspect output #122
Comments
This would be neat; what about when two tags point to the same layers? I guess render them both? |
So I wrote an implementation of this, and it turns out the answer is "no, only the first image with these layers should represent them"; that's in e.g.;
You'll get output like this:
Which is confusing, but correct, since child is a tag that points to those base layers. |
This is very confusing to me. Why isn't it like this?
AFAICT, we only have two layers: da7391352a9b, 29MB which is (and I think should be described wth url, docker://ubuntu:latest) What's 14428a6d4bcd and 2c2d948710f2 and why are they there? If these two layers represent something stacker is doing, (like from, import
I don't think it's useful to repeat the tags of the image being built, rather
Which is true, but not as informative as something that give me an
|
They are shipped as part of ubuntu://latest (aka, it is a collection of three layers and not one)
I agree :) The question is how to actually derive the result we want. If someone has done an
Sure, we could probably do some fancier introspection like that. Perhaps I'll punt on this for now then, since it looks like more than just a quick hack. Here's my implementation if anyone wants to use it as a base for future work: tych0@a929382 |
Interesting. I wonder if there are some patterns to follow here; for example Generally, I don't need to know how many layers my from: or import: image uses
The umoci tag to me is just like a symlink; so I'd display those just like
OK. I'll see if I can pull together some more examples from layers we're |
IMO, invocation of
The problem is there's no way to tell which direction the symlink points. |
That's a bug in umoci then; Do we not have timestamps for when the tag reflink was added? No. =( It appears that oci dir index.json is append ordered; but likely order is not specific/required. Maybe we should avoid using umoci and implement the few things we use it for in stacker and utilize the more detailed actions that stacker tracks. I guess that won't help with oci images that aren't built with stacker. I guess we would have to include all refs to the hash, like git tags, git log shows all tags for a ref. |
Either is fine. I'm not really tied to the 'inspect' sub command; that can continue to be debug layer tool; I'm looking for a higher level (assume the layers are built correctly) way to reason about what is and is not in an image. |
The current stacker inspect output prints a summary of image layers for example (only showing the layer parts)
Would it be possible to include the layer name along with the shorten hash; as a human, comparing the layer names is preferential when trying to understand the composition of an image; something like
The text was updated successfully, but these errors were encountered: