Minify and Secure Your Docker Containers. Frictionless!

Download 1.18 Learn More

Examples

Minify Docker Image and Generate Security Profiles.

Keep doing what you are doing. No need to change anything. Use the base image you want. Use the package manager you want. Don't worry about hand optimizing your Dockerfile. Don't worry about manually creating Seccomp and AppArmor security profiles.

$ head -n 1 Dockerfile FROM ubuntu:14.04   $ docker images my/sample-node-app REPOSITORY TAG IMAGE ID CREATED SIZE my/sample-node-app latest 8a16969f12b0 10 minutes ago 431.7 MB   $ docker-slim build --http-probe my/sample-node-app INFO[0000] docker-slim: inspecting 'fat' image metadata... INFO[0000] docker-slim: starting instrumented 'fat' container... docker-slim: press when you are done using the container... INFO[0005] docker-slim: shutting down 'fat' container... INFO[0006] docker-slim: processing instrumented 'fat' container info... INFO[0006] docker-slim: building 'slim' image... INFO[0010] docker-slim: created new image: my/sample-node-app.slim ( has data artifacts: true ).   $ docker images my/sample-node-app.slim REPOSITORY TAG IMAGE ID CREATED SIZE my/sample-node-app.slim latest f6ac586a418f 1 minute ago 14 MB

For more details about DockerSlim see the Github page.

Learn More