add new chinese translations
This commit is contained in:
36
pages.zh/common/podman-compose.md
Normal file
36
pages.zh/common/podman-compose.md
Normal file
@@ -0,0 +1,36 @@
|
||||
# podman-compose
|
||||
|
||||
> 运行和管理 Compose 规范的容器定义。
|
||||
> 更多信息:<https://github.com/containers/podman-compose>。
|
||||
|
||||
- 列出所有正在运行的容器:
|
||||
|
||||
`podman-compose ps`
|
||||
|
||||
- 使用本地 `docker-compose.yml` 在后台创建并启动所有容器:
|
||||
|
||||
`podman-compose up -d`
|
||||
|
||||
- 启动所有容器,如有需要则构建:
|
||||
|
||||
`podman-compose up --build`
|
||||
|
||||
- 使用替代的 compose 文件启动所有容器:
|
||||
|
||||
`podman-compose {{-f|--file}} {{path/to/file.yaml}} up`
|
||||
|
||||
- 停止所有正在运行的容器:
|
||||
|
||||
`podman-compose stop`
|
||||
|
||||
- 移除所有容器、网络和卷:
|
||||
|
||||
`podman-compose down --volumes`
|
||||
|
||||
- 跟踪一个容器的日志(省略所有容器名称):
|
||||
|
||||
`podman-compose logs --follow {{container_name}}`
|
||||
|
||||
- 在没有映射端口的服务中运行一次性命令:
|
||||
|
||||
`podman-compose run {{service_name}} {{command}}`
|
Reference in New Issue
Block a user