LinuxCommandLibrary

podman-compose

Run and manage Compose Specification container definition.

TLDR

List all running containers

$ podman-compose ps
copy


Create and start all containers in the background using a local docker-compose.yml
$ podman-compose up -d
copy


Start all containers, building if needed
$ podman-compose up --build
copy


Start all containers using an alternate compose file
$ podman-compose [path/to/file] up
copy


Stop all running containers
$ podman-compose stop
copy


Remove all containers, networks, and volumes
$ podman-compose down --volumes
copy


Follow logs for a container (omit all container names)
$ podman-compose logs --follow [container_name]
copy


Run a one-time command in a service with no ports mapped
$ podman-compose run [service_name] [command]
copy

Copied to clipboard