docker-squash icon indicating copy to clipboard operation
docker-squash copied to clipboard

Make it possible to run squashing without accessing Docker daemon

Open goldmann opened this issue 9 years ago • 4 comments

It should be possible to run squashing on a provided tar archive containing the image.

goldmann avatar May 25 '15 10:05 goldmann

Implementing this shouldn't be that hard. What we will need to check is for sure that the exported archive does contain single image/tag. If we would have more than one - we would not be able to select which one the user was thinking about.

From top of my head - I'm also unsure if untagged images contain repositories or manifest.json files to describe the image. If these files do not exist in exported archive, then we would either: fail or read all layers to determine the top (image) layer.

goldmann avatar Apr 17 '16 08:04 goldmann

Any update on if you guys might try to target doing this?

qwertycody avatar Jan 16 '19 17:01 qwertycody

In addition to squash off a provided tar, I would also be helpful to do it off a container image registry.

gabs79 avatar Sep 19 '23 12:09 gabs79

This would als be useful when using cloud based builders like kaniko...

cmahnke avatar Aug 13 '24 08:08 cmahnke