mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 20:11:19 +08:00
a4a5711201
Co-authored-by: Ivan Baluta <50071699+ivanbaluta@users.noreply.github.com>
25 lines
456 B
Markdown
25 lines
456 B
Markdown
# 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`
|