mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 05:22:09 +02:00
podman-build: add page (#8869)
This commit is contained in:
parent
f55c9c52f0
commit
3a37f07178
1 changed files with 25 additions and 0 deletions
25
pages/common/podman-build.md
Normal file
25
pages/common/podman-build.md
Normal file
|
@ -0,0 +1,25 @@
|
|||
# podman build
|
||||
|
||||
> Daemonless tool for building container images.
|
||||
> Podman provides a Docker-CLI comparable command-line. Simply put: `alias docker=podman`.
|
||||
> 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 --tag {{image_name:version}} {{path/to/directory}}`
|
||||
|
||||
- Create an image from a non-standard file:
|
||||
|
||||
`podman build --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 --quiet {{path/to/directory}}`
|
Loading…
Add table
Reference in a new issue