{"categories":[{"label":"Build Tools","url":"https://skillfed.io/packages/category/software-development-build-tools/5"}],"enrichment":{"capability":"Combines multiple Docker image layers into fewer layers to reduce image size and push/load time, controllable by layer count or starting layer ID.","skillfed_tags":["docker-optimization","cli-tool","image-management"],"use_cases":["Reduce final image size after a multi-stage build by squashing temporary build artifacts into a single layer.","Optimize images for faster push to a registry by consolidating many small metadata layers.","Simplify image history for cleaner layer inspection and easier debugging of production images.","Prepare images for distribution where layer count matters (e.g., embedded or resource-constrained environments).","Consolidate base image layers with application layers to reduce the number of independent components."],"what_it_does":"docker-squash is a command-line tool that merges multiple layers in a Docker image into fewer layers. Docker builds create many intermediate layers, some of which may contain temporary files that are deleted in later layers\u2014these unnecessary layers bloat the final image. The tool lets you squash the last N layers, or all layers from a specified layer onward, reducing image size and improving push/load performance.\n\nThe tool works by extracting the image, combining the target layers into a single tar archive, and either loading the result back into the Docker daemon or saving it as a tar file. It depends on the docker and packaging libraries and runs as a CLI utility rather than as an importable module.","worth_installing":"Yes, if you actively manage Docker images and want to reduce their size and push time. The tool is straightforward and has no known vulnerabilities. However, the aging maintenance status (last release 639 days ago) and high install friction (source distribution, Docker daemon requirement) mean you should verify compatibility with your Docker version before relying on it in production workflows. For one-off optimization tasks, it's low risk; for frequent automation, consider whether a more actively maintained alternative exists."},"id":"docker-squash","links":{"html":"https://skillfed.io/packages/docker-squash","md":"https://skillfed.io/packages/docker-squash.md","pypi":"https://pypi.org/project/docker-squash/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2024-11-13","license_spdx":null,"license_treatment":"permissive","name":"docker-squash","python_support":"unspecified","summary":"Docker layer squashing tool"},"popularity":{"monthly_downloads":113839,"position":12328,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.2.2"}
