mirror of https://github.com/CrimsonTome/tldr.git
podman-compose: add page (#8726)
parent
48ed0237ed
commit
16119f3643
|
@ -0,0 +1,36 @@
|
|||
# podman-compose
|
||||
|
||||
> Run and manage Compose Specification container definition.
|
||||
> More information: <https://github.com/containers/podman-compose>.
|
||||
|
||||
- List all running containers:
|
||||
|
||||
`podman-compose ps`
|
||||
|
||||
- Create and start all containers in the background using a local `docker-compose.yml`:
|
||||
|
||||
`podman-compose up -d`
|
||||
|
||||
- Start all containers, building if needed:
|
||||
|
||||
`podman-compose up --build`
|
||||
|
||||
- Start all containers using an alternate compose file:
|
||||
|
||||
`podman-compose {{path/to/file}} up`
|
||||
|
||||
- Stop all running containers:
|
||||
|
||||
`podman-compose stop`
|
||||
|
||||
- Remove all containers, networks, and volumes:
|
||||
|
||||
`podman-compose down --volumes`
|
||||
|
||||
- Follow logs for a container (omit all container names):
|
||||
|
||||
`podman-compose logs --follow {{container_name}}`
|
||||
|
||||
- Run a one-time command in a service with no ports mapped:
|
||||
|
||||
`podman-compose run {{service_name}} {{command}}`
|
Loading…
Reference in New Issue