mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-10-30 18:53:35 +08:00
slim: add page, docker-slim: convert to alias (#19708)
Co-authored-by: Ivan Baluta <50071699+ivanbaluta@users.noreply.github.com>
This commit is contained in:
@@ -1,24 +1,7 @@
|
||||
# docker-slim
|
||||
|
||||
> Analyze and optimize Docker images.
|
||||
> More information: <https://github.com/slimtoolkit/slim>.
|
||||
> This command is an alias of `slim`.
|
||||
|
||||
- Start DockerSlim on interactive mode:
|
||||
- View documentation for the original command:
|
||||
|
||||
`docker-slim`
|
||||
|
||||
- Analyze Docker layers from a specific image:
|
||||
|
||||
`docker-slim xray --target {{image:tag}}`
|
||||
|
||||
- Lint a Dockerfile:
|
||||
|
||||
`docker-slim lint --target {{path/to/Dockerfile}}`
|
||||
|
||||
- Analyze and generate an optimized Docker image:
|
||||
|
||||
`docker-slim build {{image:tag}}`
|
||||
|
||||
- Display help for a subcommand:
|
||||
|
||||
`docker-slim {{subcommand}} --help`
|
||||
`tldr slim`
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
# 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`
|
||||
Reference in New Issue
Block a user