add new chinese translations
This commit is contained in:
25
pages.zh/common/podman-build.md
Normal file
25
pages.zh/common/podman-build.md
Normal file
@@ -0,0 +1,25 @@
|
||||
# podman build
|
||||
|
||||
> 无守护进程的容器镜像构建工具。
|
||||
> Podman 提供了与 Docker-CLI 相当的命令行。简单来说:`alias docker=podman`。
|
||||
> 更多信息:<https://docs.podman.io/en/latest/markdown/podman-build.1.html>。
|
||||
|
||||
- 使用指定目录中的 `Dockerfile` 或 `Containerfile` 创建镜像:
|
||||
|
||||
`podman build {{path/to/directory}}`
|
||||
|
||||
- 使用指定标签创建镜像:
|
||||
|
||||
`podman build --tag {{image_name:version}} {{path/to/directory}}`
|
||||
|
||||
- 从非标准文件创建镜像:
|
||||
|
||||
`podman build --file {{Containerfile.different}} .`
|
||||
|
||||
- 创建镜像时不使用任何之前缓存的镜像:
|
||||
|
||||
`podman build --no-cache {{path/to/directory}}`
|
||||
|
||||
- 创建镜像时抑制所有输出:
|
||||
|
||||
`podman build --quiet {{path/to/directory}}`
|
Reference in New Issue
Block a user