Inspect, minify and debug your containers
open sourceApache-2.0self-hostablefree
SlimToolkit (formerly DockerSlim) makes container images up to 30 times smaller without changing the Dockerfile or base image: its build command runs the container, watches what the application actually uses with probes and analysis, and writes a minified image with only those files, plus Seccomp and AppArmor security profiles. Its xray command shows what's inside an image and how it was built, lint checks Dockerfiles, and debug attaches a side-car container to debug a minified image. It's a Go CLI, a CNCF Sandbox project created by Kyle Quest and supported by Root.io (formerly Slim.AI), under Apache-2.0.
Problems it solves
- our container images are over a gigabyte and slow to pull and deploy
- shrink a Docker image without rewriting the Dockerfile or switching to a distroless base
- remove everything from an image the app doesn't use to cut the vulnerability count
- generate Seccomp and AppArmor profiles for a container without learning Linux syscalls
- see what's inside an image layer by layer and which Dockerfile instructions made it
- debug a minified image that has no shell in it
Features
- build: minifies an image by up to 30x by watching what the app uses
- generates Seccomp and AppArmor profiles
- xray: inspects image contents and reverse-engineers the Dockerfile
- lint: checks Dockerfiles
- debug: side-car debugging for minified images
- HTTP probes and custom exec commands during analysis
- merge, registry, images and vulnerability commands
Capabilities
| Has a command line tool | plan not known |
|---|
Alternatives
The same job
These do what SlimToolkit does.
- dive Explore each layer of a Docker image and find ways to shrink it
- distroless Language focused docker images, minus the operating system
- Chainguard Containers Zero-CVE, built-from-source container image catalog
- Buildah A tool that facilitates building OCI container images
- ko Simple, fast container image builder for Go applications
- kaniko Build Container Images In Kubernetes
