From 16119f36434ef39152e10e79212182e1992ebfd6 Mon Sep 17 00:00:00 2001 From: Eric Lehmann Date: Sat, 8 Oct 2022 01:04:09 -0400 Subject: [PATCH] podman-compose: add page (#8726) --- pages/common/podman-compose.md | 36 ++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 pages/common/podman-compose.md diff --git a/pages/common/podman-compose.md b/pages/common/podman-compose.md new file mode 100644 index 000000000..99cd6936a --- /dev/null +++ b/pages/common/podman-compose.md @@ -0,0 +1,36 @@ +# podman-compose + +> Run and manage Compose Specification container definition. +> More information: . + +- 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}}`