Slim(toolkit): Minify and Secure Your Container Images by up to 30x
This repository profile is provided by osrepos.com, an open source repository discovery platform.
Summary
Slim(toolkit) is an open-source tool designed to optimize and secure your container images. It can reduce image size by up to 30x, or even more for compiled languages, without requiring changes to your existing workflow. This powerful toolkit also helps in generating security profiles like Seccomp and AppArmor, enhancing container security.
Repository Information
Topics
Click on any tag to explore related repositories
Use at your own risk
OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.
Introduction
Slim(toolkit), now a CNCF Sandbox project, is a powerful and free open-source tool that helps developers inspect, optimize, and debug their container images. It simplifies the process of making your containers smaller, more secure, and easier to manage. Originally known as DockerSlim, it has expanded its support for various container tools and runtimes in the cloud-native ecosystem. Slim achieves significant image size reductions, often by up to 30x, without requiring any changes to your application code or Dockerfile, while also enhancing security by auto-generating Seccomp and AppArmor profiles.
Installation
Getting started with Slim(toolkit) is straightforward, with multiple installation options available:
Downloads
Download the appropriate zip or tar.gz package for your platform from the SlimToolkit releases page. For example, for Linux:
curl -L -o ds.tar.gz https://github.com/slimtoolkit/slim/releases/download/1.40.11/dist_linux.tar.gz
tar -xvf ds.tar.gz
mv dist_linux/slim /usr/local/bin/
mv dist_linux/slim-sensor /usr/local/bin/
Scripted Install
Use the convenient install script for Linux (x86 and ARM) and macOS (x86 and Apple Silicon):
curl -sL https://raw.githubusercontent.com/slimtoolkit/slim/master/scripts/install-slim.sh | sudo -E bash -
Homebrew
If you're on macOS, you can install it via Homebrew:
brew install docker-slim
Docker
Pull the official Slim Docker image to run it containerized:
docker pull dslim/slim
For usage, remember to mount the Docker socket:
docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock dslim/slim build your-docker-image-name
Examples
Slim(toolkit) demonstrates impressive minification capabilities across various application stacks. Here are some notable examples:
- Node.js: From
ubuntu:14.04(432MB) to 14MB, a 30.85X reduction. - Python: From
python:2.7.15(916MB) to 27.5MB, a 33.29X reduction. - Go: From
golang:latest(700MB) to 1.56MB, a 448.76X reduction. - Rust: From
rust:1.31(2GB) to 14MB, a 147.16X reduction. - PHP: From
php:7.0-cli(368MB) to 26.6MB, a 13.85X reduction.
These examples highlight Slim's ability to drastically reduce image sizes, leading to faster deployments, reduced storage costs, and a smaller attack surface.
Why Use It
Slim(toolkit) offers compelling advantages for modern containerized applications:
- Significant Size Reduction: Drastically shrink your container images, often by tens or even hundreds of times, reducing build times, deployment speeds, and storage requirements.
- Enhanced Security: Automatically generate Seccomp and AppArmor security profiles tailored to your application's actual runtime behavior, minimizing the attack surface.
- No Workflow Changes: Integrate seamlessly into your existing development and CI/CD pipelines without needing to modify your Dockerfiles or application code.
- Deep Insight: Gain advanced visibility into your container's contents and runtime behavior through commands like
xray, helping you understand what makes your images "fat." - Open Source & Community Driven: Benefit from an active open-source community and continuous improvements, with support for a wide range of languages and base images.
Links
- GitHub Repository: https://github.com/slimtoolkit/slim
- Examples Repository: https://github.com/slimtoolkit/examples
- Gitter Chat: https://gitter.im/docker-slim/community
- Discord Server: https://discord.gg/9tDyxYS
- Twitter: https://twitter.com/SlimToolkit
- YouTube Channel: https://www.youtube.com/channel/UCy7RHjJlaBhpCCbChrd8POA?sub_confirmation=1
- Slim.AI SaaS: https://portal.slim.dev/login?invitecode=invite.1s85zlfnYX0p5TT1XKja49pAHbL
Related repositories
Similar repositories that may be relevant next.
sandbox-sdk: Secure Sandboxed Code Environments on Cloudflare's Edge
December 25, 2025
The Cloudflare sandbox-sdk provides a powerful toolkit for running isolated code environments directly on Cloudflare's global edge network. This SDK enables developers to execute untrusted code securely and efficiently, making it ideal for AI agents, code interpreters, and various serverless applications.

ctop: A Top-like Interface for Real-time Container Metrics
December 15, 2025
ctop offers a familiar top-like command-line interface for monitoring container metrics in real-time. It provides a concise overview of multiple containers, along with detailed single-container views. This tool supports Docker and runC, making it an essential utility for developers and system administrators managing containerized environments.
Podman: A Daemonless Tool for Managing OCI Containers and Pods
November 29, 2025
Podman is an open-source tool for managing OCI containers and pods, offering a daemonless architecture for enhanced security and resource efficiency. It provides a Docker-compatible CLI, supports rootless containers, and runs across Linux, Mac, and Windows environments. This makes it a versatile choice for developers and system administrators alike.
Source repository
Open the original repository on GitHub.