#1010746 ITP: docker-squash -- Squashing helps with organizing docker images in logical layers

Package:
wnpp
Source:
wnpp
Submitter:
Sascha Girrulat
Date:
2025-11-29 16:50:49 UTC
Severity:
wishlist
#1010746#5
Date:
2022-05-09 07:40:51 UTC
From:
To:
* Package name    : docker-squash
  Version         : 1.0.9
  Upstream Author : Marek Goldmann
* URL             : https://github.com/goldmann/docker-squash
* License         : MIT
  Programming Lang: Python
  Description     : Helps with organizing docker images layers

Docker creates many layers while building the image. Sometimes it's not
necessary or desireable to have them in the image. For example a
Dockerfile ADD instruction creates a single layer with files you want to
make available in the image. Docker will carry this layer always with the image,
even if you delete these files in next layer.
.
Squashing helps with organizing images in logical layers. Instead of
having an image with multiple (sometimes) unnecessary layers.
.
Docker-squash can
.
  * squash last n layers from an image
  * squash from a selected layer to the end (not always possible, depends on the image)
  * support for Docker 1.9 or newer (older releases may run perfectly fine too, try it!)
  * the image can be loaded back to the Docker daemon or stored as tar archive somewhere

#1010746#10
Date:
2024-02-14 15:47:45 UTC
From:
To:
Hi,

Are you still working on a Debian package of docker-squash[1]?

I would like it packaged as a dependency of Cekit[2], so if
you have stopped working on it I can take over this ITP.

Note that Docker/Moby API version 1.25 has introduced a new,
experimental, similar feature "--squash" argument for builds;
I don't know how well it works, whether it will stay in Docker
longer term (and become not experimental) and for the time
being Cekit doesn't use it.

[1] https://bugs.debian.org/1010746
[2] https://bugs.debian.org/1055584


Thanks,