mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 20:11:19 +08:00
9d23ba032a
Co-authored-by: Darío Hereñú <magallania@gmail.com> Co-authored-by: Emmanuel Ferdman <emmanuelferdman@gmail.com> Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
25 lines
709 B
Markdown
25 lines
709 B
Markdown
# podman build
|
|
|
|
> Daemonless tool for building container images.
|
|
> More information: <https://docs.podman.io/en/latest/markdown/podman-build.1.html>.
|
|
|
|
- Create an image using a `Dockerfile` or `Containerfile` in the specified directory:
|
|
|
|
`podman build {{path/to/directory}}`
|
|
|
|
- Create an image with a specified tag:
|
|
|
|
`podman build {{[-t|--tag]}} {{image_name:version}} {{path/to/directory}}`
|
|
|
|
- Create an image from a non-standard file:
|
|
|
|
`podman build {{[-f|--file]}} {{Containerfile.different}} .`
|
|
|
|
- Create an image without using any previously cached images:
|
|
|
|
`podman build --no-cache {{path/to/directory}}`
|
|
|
|
- Create an image suppressing all output:
|
|
|
|
`podman build {{[-q|--quiet]}} {{path/to/directory}}`
|