mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
30 lines
549 B
Plaintext
30 lines
549 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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`
|