Docker Compose 5.8.1
Docker Compose 5.8.1 was tagged on November 27, 2026, ten days after 5.8.0. There are no new top-level commands and no changes to the Compose file specification. The release is a correction pass over hooks, replica waiting and project name resolution, with one OCI improvement that lets Compose reuse a cached image instead of rebuilding the load path.
Overview
Version 5.8.1 collects nine fixes and a set of internal cleanups. The three most likely to be felt in day to day use are the pre_stop hook ordering changes, the --wait behaviour for scaled services and the stricter project name resolution. Everything else is smaller: model short forms, watch mode deletions, jobs on engine endpoints without HTTP/2, and a batch of dependency bumps.
Fixes That Change Behaviour
- pre_stop hooks now run before every stop. Three separate pull requests (#14477, #14547, #14555) make the executor run
pre_stophooks before the plan stops a container, and stop or restart a container whosepre_stophook cannot run instead of leaving it in an undefined state. - --wait covers every replica.
docker compose up --waitand services markedservice_completed_successfullypreviously resolved as soon as one replica settled. #14523 makes the wait apply to every replica of a scaled service. - One project resolution story. #14151 removes ambiguity in how the project name is chosen: a single precedence order, load errors that are no longer swallowed, and strict validation of the service names passed on the command line.
- Short form models are not pulled twice. When a model was written in short form, Compose could pull it again on the next run. #14532 fixes the comparison.
- Watch mode deletes in batches. A large number of synced paths is now deleted across several
execcalls instead of one oversized command (#14528). - Jobs on older endpoints. An engine endpoint without HTTP/2 is now reported as not supporting jobs rather than failing deeper in the call (#14559).
Improvements
The OCI path can now load directly from the cache when possible (#14466), which removes a redundant step when the image content is already present locally. The API layer also gained validation for the options of Logs, Events, Publish and Down (#14515), so invalid combinations are rejected before a request reaches the engine.
Internal and Dependencies
The end to end suite forwards Docker TLS environment variables (#14524) and now runs nightly against the head of Moby and Buildx (#14548), which should catch integration drift earlier. Each component was given only the engine families it actually uses (#14534), and CI moved to the official zizmor action (#14556). Dependency bumps include docker/cli 29.10.1, klauspost/compress 1.20.5, the container device interface 1.1.2 and go-shellwords 1.0.17. The secrets engine client moved to v1.0.0 and secrets-engine/x was dropped (#14541).
How to Upgrade
Compose ships as a CLI plugin, so the update arrives with Docker Desktop or through your distribution's docker-compose-plugin package. After updating, docker compose version should report v5.8.1. If you rely on pre_stop hooks, re-run your stop paths once: the hook order has changed, and that is the change most worth verifying in your own setup.