HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

slim — Analyze and optimize Docker images. More information: <https://github.com/slimtoolkit/slim#usage-det

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandimagesdockerandoptimizeanalyzeclislim

Problem

How to use the slim command: Analyze and optimize Docker images. More information: <https://github.com/slimtoolkit/slim#usage-details>.

Solution

slim — Analyze and optimize Docker images. More information: <https://github.com/slimtoolkit/slim#usage-details>.

Start Slim on interactive mode:
slim


Analyze Docker layers from a specific image:
slim xray --target {{image:tag}}


Lint a Dockerfile:
slim lint --target {{path/to/Dockerfile}}


Analyze and generate an optimized Docker image:
slim build {{image:tag}}


Display help for a subcommand:
slim {{subcommand}} --help

Code Snippets

Start Slim on interactive mode

slim

Analyze Docker layers from a specific image

slim xray --target {{image:tag}}

Lint a Dockerfile

slim lint --target {{path/to/Dockerfile}}

Analyze and generate an optimized Docker image

slim build {{image:tag}}

Display help for a subcommand

slim {{subcommand}} --help

Context

tldr-pages: common/slim

Revisions (0)

No revisions yet.