LinuxCommandLibrary

podman-compose

TLDR

Start services

$ podman-compose up
copy
Start in background
$ podman-compose up -d
copy
Stop services
$ podman-compose down
copy
View logs
$ podman-compose logs
copy
Build images
$ podman-compose build
copy
List containers
$ podman-compose ps
copy
Execute command in service
$ podman-compose exec [service] [command]
copy

SYNOPSIS

podman-compose [options] command [args...]

DESCRIPTION

podman-compose runs multi-container applications defined in docker-compose.yml files using Podman. Drop-in replacement for docker-compose. Supports most compose file features without requiring a daemon.

PARAMETERS

up

Create and start containers.
down
Stop and remove containers.
build
Build images.
logs
View container logs.
ps
List containers.
exec
Execute command in container.
-d, --detach
Run in background.
-f file
Compose file path.

SEE ALSO

Copied to clipboard