Podman Compose is almost fully compatible with docker-compose, and rootless is safer — for everyday development you can just use it as Docker Compose ~

Core commands (copy and paste ready)

CommandDescriptionDaily usage frequency
podman-compose up -dStart in the background★★★★★
podman-compose downStop and remove containers★★★★★
podman-compose down -vRemove volumes too (full reset)★★★★
podman-compose psCheck running status★★★★★
podman-compose logs -fWatch all logs in real time★★★★
podman-compose logs -f 服务名Follow a specific service’s logs★★★★★
podman-compose buildRebuild images★★★★
podman-compose pullPull the latest images★★★
podman-compose restartRestart all services★★★
podman-compose exec 服务名 bashEnter a container★★★★★
podman-compose run --rm 服务名 命令Run a one-off task★★★★

The ones I use most (just memorize these)

# 标准启动
podman-compose up -d --build

# 更新镜像后启动
podman-compose pull && podman-compose up -d --build

# 彻底删光重来(开发时超常用)
podman-compose down -v && podman-compose up -d --build

# 只重启/更新某个服务
podman-compose up -d --build web

# 进容器修东西
podman-compose exec web bash