Automic VaultAutomic Vault

brew

Install docker-squash with Homebrew

Docker image squashing tool. Version 1.2.2 via Homebrew; verified 2026-05-21.

install

Additional install commands

macOS

Homebrewverified ยท 100%
brew install docker-squash

local Homebrew formula metadata

overview

Package summary

Docker image squashing tool

Commands and aliases

  • docker-squash

history

Project history and usage

docker-squash is a Python CLI for squashing Docker image layers. It grew out of a practical image-size problem: Dockerfile instructions create layers, temporary build artifacts can remain in earlier layers, and pushing, saving, or loading those images can cost unnecessary time and storage.

Project history

The README describes docker-squash as a tool that can squash the last n layers of an image or squash from a selected layer to the end, then load the result back into the Docker daemon or store it as a tar archive. It explicitly frames squashing as a way to organize images into more logical layers and avoid carrying temporary files.

Adoption history

The project was packaged for installation from source, PyPI, and Homebrew. Its relevance is strongest in the legacy Docker builder era, before BuildKit and multi-stage builds reduced the need for post-processing images to remove build-time artifacts.

How it is used

A typical command selects an image, optionally sets --from-layer or a number of layers, tags the new image with --tag, writes an archive with --output-path, or controls whether the result is loaded back into Docker. The README examples compare docker history before and after squashing to show layer changes.

Why package nerds care

docker-squash is notable because it packages image-layer surgery as a normal CLI command. It is a useful historical artifact for understanding how Docker users handled layer bloat before modern Dockerfile patterns and BuildKit made the problem less central.

Timeline

  • Docker 1.9 era: The README documents Docker 1.9 or newer support.
  • Python 3 era: The README documents Python 3.6 and newer support.
  • BuildKit era: Docker documents the legacy Linux image builder as deprecated, making squashing tools more historical and niche.

Related projects

  • Related projects include Docker Engine, Docker's legacy builder, BuildKit, multi-stage Dockerfiles, and the docker history command used to inspect image layers.

security posture

No protected-tool coverage found yet

No matching local secret-handling manifest was found for docker-squash. Nucleus package metadata is still published here so future coverage has a stable package URL.

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 1 platform targets.
  • Installs with 2 runtime dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
docker-squashcliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version1.2.2
manager updated2026-05-21
local dataok
upstreamnot checked
latest detectednot detected

https://github.com/goldmann/docker-squash

install metadata

Package metadata

Package keybrew:docker-squash
Version1.2.2
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/docker-squash
Homepagehttps://github.com/goldmann/docker-squash
Repositoryhttps://github.com/goldmann/docker-squash
Upstream docshttps://github.com/goldmann/docker-squash#readme
LicenseMIT
Source archivehttps://files.pythonhosted.org/packages/77/ef/45dc63f3f0f3fba18306dac34d9be26f9dd0d1a0742a7f0ca39cf1a98b15/docker_squash-1.2.2.tar.gz
Last updated2026-05-21T10:31:32Z
Pulseupdated
Dependenciescertifi, python@3.14
Bottleavailable (on all)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namedocker-squash
Version Scheme0
Revision7
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • package relationship graph
  • package version freshness
  • package-page enrichment