2025-03-14 21:59:59 -06:00
|
|
|
# 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:
|
|
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
`podman build {{[-t|--tag]}} {{image_name:version}} {{path/to/directory}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Create an image from a non-standard file:
|
|
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
`podman build {{[-f|--file]}} {{Containerfile.different}} .`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Create an image without using any previously cached images:
|
|
|
|
|
|
|
|
|
|
`podman build --no-cache {{path/to/directory}}`
|
|
|
|
|
|
|
|
|
|
- Create an image suppressing all output:
|
|
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
`podman build {{[-q|--quiet]}} {{path/to/directory}}`
|