On this page you find all important commands for the CLI tool docker-slim. If the
command you are looking for is missing please ask our AI.
docker-slim
DockerSlim is a tool for developers that provides a set of commands (build, xray, lint and others) to simplify and optimize your developer experience with containers. It makes your containers betters, smaller and more secure.
Don't change anything in your Docker container image and minify it by up to 30x making it secure too! Optimizing images isn't the only thing it can do though. It can also help you understand and author better container images.
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. You shouldn't have to throw away your tools and your workflow to have small container images.
List of commands for docker-slim:
-
docker:tldr:0de2b docker: Start DockerSlim on interactive mode.$ docker-slimtry on your machineexplain this command
-
docker:tldr:233d2 docker: Analyze and generate an optimized Docker image.$ docker-slim build ${image:tag}try on your machineexplain this command
-
docker:tldr:8253c docker: Lint a Dockerfile.$ docker-slim lint --target ${path-to-Dockerfile}try on your machineexplain this command
-
docker:tldr:8db40 docker: Analyze Docker layers from a specific image.$ docker-slim xray --target ${image:tag}try on your machineexplain this command
-
docker:tldr:8e873 docker: Display help for a subcommand.$ docker-slim ${subcommand} --helptry on your machineexplain this command