Skip to content

Compose

PolarBearEs edited this page Jul 26, 2026 · 2 revisions

Compose

pocker compose reads Compose files directly. It does not shell out to the Docker CLI or Docker Compose CLI.

Inspect the resolved pocker pull model:

pocker compose config --format json
pocker compose config --images
pocker compose config --services
pocker compose config --pull-plan
pocker compose -f docker-compose.prod.yml config --images api worker

pocker compose config --format json prints pocker's resolved pull model, not Docker Compose's full canonical configuration. Build-only services without an image are listed as skipped because there is no registry image for pocker to pull.

Pull Compose service images:

pocker compose pull
pocker compose -f docker-compose.prod.yml pull api worker
pocker compose pull --max-parallel-images 4

Compose file discovery follows the usual default names and supports repeated -f/--file flags. Image discovery supports service image, .env interpolation, include, and extends.

Profiles

Enable optional Compose services with --profile. Repeat the flag to enable multiple profiles:

pocker compose --profile tools --profile debug pull

When no profile flag is given, pocker reads the comma-separated COMPOSE_PROFILES value from the process environment or the Compose project's .env file. The process environment takes precedence. Use * to enable every profile:

COMPOSE_PROFILES='*' pocker compose config --images

Naming a service explicitly includes that service even when its profile is not otherwise active:

pocker compose config --images optional-service
pocker compose pull optional-service

Clone this wiki locally