For a tool for shrinking container image size, the first results are slimtoolkit/slim (Slim is a container optimization tool that automatically reduces Docker image size by removing unnecessary files, flattening layers, and analyzing dependencies, matching your need for automated image size reduction), docker-slim/docker-slim (Docker Slim is a dedicated image-minifier that uses dynamic analysis to automatically strip unused files and dependencies, making it the exact kind of tool you are looking for, with added security profiling and registry integration) and google/go-containerregistry (go-containerregistry provides Go libraries for querying and manipulating container image registries, but it does not analyze images or strip dependencies to reduce size, so it is a supporting component rather than a Docker image size optimizer itself). wagoodman/dive and coreos/clair round out the shortlist. Compare the match explanations and check the project documentation against your requirements.
Tools that automatically analyze and reduce container image size by removing unnecessary files and dependencies.
Slim is a comprehensive suite for container lifecycle management, providing tools for image inspection, optimization, security hardening, and service troubleshooting. It functions as a platform for analyzing containerized applications through both static metadata review and dynamic behavioral probing, enabling users to understand image composition and runtime dependencies. The project distinguishes itself by automating the creation of minimal, production-ready container images. It achieves this by removing unnecessary files and components, flattening image layers, and synthesizing restrictive
Slim is a container optimization tool that automatically reduces Docker image size by removing unnecessary files, flattening layers, and analyzing dependencies, matching your need for automated image size reduction.
This project is a suite of specialized tools for linting, minifying, analyzing, and managing container images and their associated registries. It provides a set of utilities including an image minifier to reduce image size, a security profiler to harden running containers, an image analyzer for static inspection, and a registry manager for organizing multi-architecture indices. The toolset distinguishes itself through behavior-based optimization and security. It uses dynamic analysis to track executed instructions and file access to remove unused binary data, and records kernel interactions t
Docker Slim is a dedicated image-minifier that uses dynamic analysis to automatically strip unused files and dependencies, making it the exact kind of tool you are looking for, with added security profiling and registry integration.
go-containerregistry is a Go library and toolkit for interacting with OCI and Docker registries. It provides a programmatic implementation of the Open Container Initiative distribution specification to fetch, upload, and manage container images, manifests, and layers. The library functions as a container image manipulation tool and a multi-platform image index manager. It enables the resolution and management of manifest lists that target various hardware architectures and operating systems without requiring a local daemon. The toolkit covers a broad range of registry interactions, including
go-containerregistry provides Go libraries for querying and manipulating container image registries, but it does not analyze images or strip dependencies to reduce size, so it is a supporting component rather than a Docker image size optimizer itself.
Dive is a command-line tool designed for the analysis and optimization of container images. It functions as a layered storage inspector, allowing users to decompose image manifests to examine individual filesystem layers and identify opportunities to reduce total image size. The tool features a filesystem diffing engine that calculates net changes between sequential layers to highlight redundant data and storage inefficiencies. Users interact with this data through a terminal-based dashboard that provides keyboard-driven navigation of complex file structures and layer metadata. By abstracting
Dive is an interactive layer inspector that helps you find wasted space in Docker images, but it does not automatically strip dependencies or reduce image size—it requires manual intervention based on its analysis.
Clair is a container vulnerability scanner that performs static analysis of container images to identify known security vulnerabilities. It functions as an analyzer for OCI and Docker images, indexing their contents to detect security risks and outdated packages without requiring the containers to be running. The tool identifies vulnerabilities by matching indexed container components against security databases to find common vulnerabilities and exposures. This process involves analyzing filesystem layers to track the provenance and versioning of packages across the image hierarchy. The proj
Clair is a container vulnerability scanner that identifies security issues in images, not a tool that reduces image size by stripping unnecessary files and dependencies, so it is in the wrong category for this search.
dockerc is a container image compiler that converts OCI-compliant images into standalone executable binaries. It functions as a containerless application distributor, enabling the deployment of containerized workloads as single files that run without requiring a container runtime on the host system. The system achieves zero-dependency distribution by flattening container image layers and embedding the root filesystem as a data blob within the resulting static binary. It uses a shim-based process execution model to simulate the container environment and provides a mechanism to expose internal
dockerc converts container images into standalone binaries rather than reducing Docker image size by stripping unnecessary files, so it serves a different purpose than the image optimizer you are looking for.
Skopeo is an OCI container image manager and registry client designed for inspecting, copying, and signing container images across different registries and storage backends. It enables the manipulation of container images using direct API calls to registries, operating independently of a local container daemon or runtime. The tool provides specialized capabilities for container image mirroring and synchronization, specifically supporting the mirroring of external repositories to internal registries for air-gapped environments. It also functions as a container image signing tool, allowing for
Skopeo manages container images and registries (inspecting, copying, signing) but does nothing to automatically reduce image size by removing unnecessary files or dependencies—it is a different kind of container tool.
Kubescape is a security platform for Kubernetes that provides tools for scanning clusters, configurations, and container images against industry compliance and security benchmarks. It functions as a suite of security utilities, including a compliance auditor, a misconfiguration scanner, and a container vulnerability scanner. The project differentiates itself through automated remediation and active enforcement. It can automatically patch operating system vulnerabilities in images and fix security errors within manifest files. It also utilizes an admission controller to block the deployment of
Kubescape is a Kubernetes security platform that scans and patches container images for vulnerabilities, not a tool for automatically reducing Docker image size by stripping unnecessary files and dependencies.
Kaniko is an OCI container image builder that executes Dockerfiles in userspace without requiring a privileged daemon. It is designed as a Kubernetes-native image builder, allowing for the construction and pushing of images to registries from within a cluster or container. The tool ensures reproducible build generation by stripping timestamps from image layers, guaranteeing that identical source inputs produce the same image identifier. It supports multi-architecture image building, allowing for the creation of images compatible with various hardware and operating systems from a single proces
Kaniko builds container images from Dockerfiles without a daemon, but its focus is reproducible builds and multi-architecture support, not the automatic size reduction, dependency stripping, or security scanning this search requires.
This repository provides a Docker base image built on Alpine Linux, designed to produce containers under 5 MB. It is a minimal Linux container image that uses the apk package manager for installing software from the Alpine Linux repository. The image is constructed with a musl-based C library and a BusyBox-based userland, replacing GNU coreutils with a single compact binary. It structures the filesystem as a single root filesystem layer to minimize storage and transfer overhead, and is compatible with multi-stage Docker builds to keep final images lean. The project covers building smaller an
This is a minimal Alpine Linux base image designed to be small, not a standalone tool that automatically analyzes and optimizes arbitrary Docker images by stripping unused files and dependencies.
img is a collection of toolsets for building, managing, and manipulating OCI compliant container images. It functions as an image build tool and registry client, providing the capabilities to create images from configuration files, push and pull images to remote registries, and extract image layers into root filesystems or archives. The project distinguishes itself through support for multi-platform builds using hardware emulators and the ability to perform unprivileged container builds via namespace-based process isolation and user ID mapping. It also includes a cross-platform binary compile
This is a container image build and management tool with registry operations, not an optimizer that automatically reduces image size by stripping dependencies—it lacks the core slimming features your search targets.
This project is a collection of techniques and configurations for reducing the disk footprint of compiled Rust executables. It serves as a guide and toolset for binary size optimization, providing strategies to minimize the final executable size through compiler flags and configuration. The project focuses on aggressive size reduction strategies, including recompiling the standard library from source to prune unused functions and implementing no-standard-library modes for memory-constrained environments. It details how to eliminate runtime overhead by removing standard library entry points an
This is a guide and toolset for reducing Rust binary sizes, not an automated Docker image optimizer—it focuses on executable footprint rather than removing unnecessary files and dependencies from container images.
| Repository | Stars | Language | License | Last push |
|---|---|---|---|---|
| slimtoolkit/slim | 23K | Go | apache-2.0 | |
| docker-slim/docker-slim | 23.3K | Go | Apache-2.0 | |
| 3.7K |
| Go |
| apache-2.0 |
| wagoodman/dive | 54.2K | Go | MIT |
| coreos/clair | 11K | Go | Apache-2.0 |
| nilsirl/dockerc | 4.9K | Zig | GPL-3.0 |
| containers/skopeo | 11K | Go | Apache-2.0 |
| armosec/kubescape | 11.5K | Go | Apache-2.0 |
| googlecontainertools/kaniko | 15.8K | Go | Apache-2.0 |
| gliderlabs/docker-alpine | 5.7K | Shell | BSD-2-Clause |