Skip to content

Commit b954424

Browse files
committed
imagebuild command docs
Signed-off-by: Kyle Quest <[email protected]>
1 parent fc837fb commit b954424

File tree

1 file changed

+36
-12
lines changed

1 file changed

+36
-12
lines changed

README.md

Lines changed: 36 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Note that **DockerSlim** is now **MinToolkit** or just **Mint** (it was also cal
2121

2222
## Overview
2323

24-
**Mint** allows developers to inspect, optimize and debug their containers using its `xray`, `slim` (aka `build`), `debug`, `lint`, `run`, `images`, `merge`, `registry`, `vulnerability` (and other) commands. It simplifies and improves your developer experience building, customizing and using containers. It makes your containers better, smaller and more secure while providing advanced visibility and improved usability working with the original and minified containers.
24+
**Mint** allows developers to inspect, optimize and debug their containers using its `xray`, `slim` (aka `build`), `debug`, `lint`, `run`, `images`, `imagebuild`, `merge`, `registry`, `vulnerability` (and other) commands. It simplifies and improves your developer experience building, customizing and using containers. It makes your containers better, smaller and more secure while providing advanced visibility and improved usability working with the original and minified containers.
2525

2626
Don't change anything in your 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.
2727

@@ -153,6 +153,7 @@ Elixir application images:
153153
- [`XRAY` COMMAND OPTIONS](#xray-command-options)
154154
- [`SLIM` (aka `BUILD`) COMMAND OPTIONS](#slim-command-options)
155155
- [`DEBUG` COMMAND OPTIONS](#debug-command-options)
156+
- [`IMAGEBUILD` COMMAND OPTIONS](#imagebuild-command-options)
156157
- [`RUN` COMMAND OPTIONS](#run-command-options)
157158
- [`REGISTRY` COMMAND OPTIONS](#registry-command-options)
158159
- [`VULNERABILITY` COMMAND OPTIONS](#vulnerability-command-options)
@@ -264,24 +265,25 @@ See the [RUNNING CONTAINERIZED](#running-containerized) section for more usage i
264265

265266
## BASIC USAGE INFO
266267

267-
`mint [global flags] [xray|slim|debug|profile|run|lint|merge|images|registry|vulnerability|app|help] [command-specific flags] <IMAGE_ID_OR_NAME>`
268+
`mint [global flags] [xray|slim|debug|profile|imagebuild|run|lint|merge|images|registry|vulnerability|app|help] [command-specific flags] <IMAGE_ID_OR_NAME>`
268269

269270
If you don't specify any command `mint` will start in the interactive prompt mode.
270271

271272
### COMMANDS
272273

273-
- `slim` - Create a minimal container image for your selected image generating the supported security profiles. This is the most popular command. (aka `build`)
274+
- `slim` - Create a minimal container image for your selected image generating the supported security profiles. This is the most popular command. (aka `build`).
274275
- `debug` - Debug minimal or regular container images running in Docker, Podman, Kubernetes and ContainerD.
275276
- `xray` - Performs static analysis for the target container image (including 'reverse engineering' the Dockerfile for the image). Use this command if you want to know what's inside of your container image and what makes it fat.
276-
- `lint` - Analyzes container instructions in Dockerfiles (Docker image support is WIP)
277+
- `lint` - Analyzes container instructions in Dockerfiles (Docker image support is WIP).
277278
- `registry` - Execute registry operations (`pull`, `push`, `copy`, `server`).
278279
- `profile` - Performs basic container image analysis and dynamic container analysis, but it doesn't generate an optimized image.
279-
- `run` - Runs one or more containers (for now runs a single container similar to `docker run`)
280+
- `run` - Runs one or more containers (for now runs a single container similar to `docker run`).
280281
- `merge` - Merge two container images (optimized to merge minified images).
282+
- `imagebuild` - Build container image using selected build engine.
281283
- `images` - Get information about container images (example: `mint --quiet images`).
282284
- `vulnerability` - Execute vulnerability related tools and operations (`epss`).
283285
- `app` - Execute app management, maintenance, debugging and query operations (`bom`, `version`, `remove-sensor-volumes`, `update`, `install` operations).
284-
- `help` - Show the available commands and global flags
286+
- `help` - Show the available commands and global flags.
285287

286288
Example: `mint slim my/sample-app`
287289

@@ -295,17 +297,18 @@ If you run `mint` without any parameters you'll get an interactive prompt that w
295297

296298
Commands:
297299

298-
- `slim` - Create a minimal container image for your selected image generating the supported security profiles. (aka `build`)
300+
- `slim` - Create a minimal container image for your selected image generating the supported security profiles. (aka `build`).
299301
- `debug` - Debug minimal or regular container images running in Docker, Podman, Kubernetes and ContainerD.
300-
- `xray` - Show what's in the container image and reverse engineer its Dockerfile
302+
- `xray` - Show what's in the container image and reverse engineer its Dockerfile.
301303
- `lint` - Lint the target Dockerfile (or image, in the future)
302304
- `registry` - Execute registry operations (`pull`, `push`, `copy`, `server`).
303-
- `profile` - Collect fat image information and generate a fat container report
304-
- `merge` - Merge two container images (optimized to merge minified images)
305+
- `profile` - Collect fat image information and generate a fat container report.
306+
- `merge` - Merge two container images (optimized to merge minified images).
307+
- `imagebuild` - Build container image using selected build engine.
305308
- `images` - Get information about container images.
306309
- `vulnerability` - Execute vulnerability related tools and operations (`epss`).
307310
- `app` - Execute app management, maintenance, debugging and query operations (`bom`, `version`, `remove-sensor-volumes`, `update`, `install` operations).
308-
- `help` - Show help info
311+
- `help` - Show help info.
309312

310313
Global options:
311314

@@ -316,7 +319,7 @@ Global options:
316319
- `--verbose` - enable info logs
317320
- `--log-level` - set the logging level ('debug', 'info', 'warn' (default), 'error', 'fatal', 'panic')
318321
- `--log-format` - set the format used by logs ('text' (default), or 'json')
319-
- `--crt-api-version` - Container runtime API version
322+
- `--crt-api-version` - Container runtime API version, right now applies only to the Docker runtime API version (default: 1.32)
320323
- `--quiet` - less verbose CLI execution mode
321324
- `--output-format` - set the output format to use ('text' (default), or 'json')
322325
- `--log` - log file to store logs
@@ -604,6 +607,27 @@ Debug minimal or regular container images running in Docker, Podman, Kubernetes
604607

605608
See the "Debugging Using the `debug` Command" section for more information about this command.
606609

610+
### `IMAGEBUILD` COMMAND OPTIONS
611+
612+
Build container image using selected build engine
613+
614+
USAGE: `mint [GLOBAL FLAGS] imagebuild [FLAGS] [IMAGE]`
615+
616+
Flags:
617+
618+
- `--engine` - Container image build engine to use: `docker` (Native Docker container build engine), `podman` (Native Podman/Buildah container build engine), `buildkit` (BuildKit container build engine), `depot` (Depot.dev cloud-based container build engine).
619+
- `--image-name` - Container image name to use (including tag).
620+
- `--image-archive-file` - Local file path for the image tar archive file (used for the `depot` and `buildkit` engines).
621+
- `--dockerfile` - Local Dockerfile path (for `buildkit` and `depot`) or a relative to the build context directory (for `docker` or `podman`). Default: `Dockerfile`.
622+
- `--context-dir` - Local build context directory. Default: `.`.
623+
- `--build-arg` - Build time variable (ARG). [can use this flag multiple times]
624+
- `--label` - Image label to add. [can use this flag multiple times]
625+
- `--architecture` - Build architecture (`amd64` or `arm64`).
626+
- `--engine-endpoint` - Build engine endpoint address (for `buildkit`).
627+
- `--engine-token` - Build engine specific API token (for `depot`).
628+
- `--engine-namespace` - Build engine specific namespace (for `depot`).
629+
- `--runtime-load` - Container runtime where to load to created image: `none`, `docker`, `podman`.
630+
607631
### `RUN` COMMAND OPTIONS
608632

609633
Run one or more containers

0 commit comments

Comments
 (0)