-
Notifications
You must be signed in to change notification settings - Fork 18.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
diffi command to inspect changes on image filesystem #12919
Conversation
Signed-off-by: Ashwin Phatak <ashwinpphatak@gmail.com>
case archive.ChangeDelete: | ||
kind = "D" | ||
} | ||
fmt.Fprintf(cli.out, "%s %s\n", kind, change.Path) |
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.
Hm. Since the change type does not have a size attribute - how could we get the size of the change.
I guess best would be to add it to the struct so we don't have to change the driver protocol.
https://github.com/docker/docker/blob/master/daemon/graphdriver/driver.go#L115
But adding it to the driver doesn't seem to be so easy
https://github.com/docker/docker/blob/master/daemon/graphdriver/aufs/aufs.go#L352
unless we could use this here too for size:
https://github.com/docker/docker/blob/master/daemon/graphdriver/aufs/aufs.go#L328
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.
Do we need the size diff at the level of each change, or only the layer?
DiffSize()
should work for layers https://github.com/docker/docker/blob/master/daemon/graphdriver/driver.go#L123
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.
I am personally after the size diff of each change. The user story is to track down changes that enlarge images.
@ashwinphatak can you add |
@cpuguy83 done |
@ashwinphatak my personal opinion is that I don't want to add another command just for diffing images. But we should also probably not overload I do welcome the feature, but not in this form. Would prefer to close the PR and continue discussion on the issue. |
Closing the issue as this feature needs more discussion around requirements. See #12641 |
Thanks for your understanding ! |
Closes #12641
Signed-off-by: Ashwin Phatak ashwinpphatak@gmail.com