docker compose

Define multi-container apps (v2)

high risk

interactive breakdown — edit the command and press Explain
$ 
⚠ Risks & cautions
Safer / dry-run alternatives
docker compose configReview the effective config
docker compose downKeep volumes
What it does

Compose v2 plugin: manages the services in compose.yaml.

Common flags
FlagMeaning
up -dCreate/start
downStop and remove
down -vRemove volumes too⚠ Deletes data.
logs -fFollow logs
configValidate/show merged config
pullPull images
Examples
docker compose psStatus · explain & risk-check →
docker compose up -d --buildRebuild and start · explain & risk-check →
Related
docker docker-compose
Open the full explainer →More in Docker & Containers

Reference text is hand-written and may be incomplete — check man docker for your version. Test destructive commands on a non-production system first.