Docker Compose v2.0.0stable Released Sep 28, 2021
Impact Score: 5/10

Docker Compose v2.0.0 - Release Notes & Engineering Impact

Source available - automated, not human-reviewed

Component: docker-compose · Channel: stable. Automated analysis, not a compatibility certification. How this works.

Compatibility not verified - check source notes
📄 .MD
⚡ Executive Summary (TL;DR)

Docker Compose v2.0.0. Source highlight: ⚠️ **Compose v2 architecture and installation instructions differ from v1, see README.md.**

Who Does This Impact? (Role-Based Analysis)

💻 Software Engineers & Devs

Check the source notes against the package and APIs you use before upgrading.

📊 Product & Engineering Leads

Use the documented changes to assess relevance to your product; release frequency alone is not a quality measure.

⚙️ DevOps & Security

Verify the target version, runtime requirements and rollback procedure in the official documentation.

✨ New Features & Capabilities (6)

  • added support for `COMPOSE_IGNORE_ORPHANS`
  • `compose exec` and `compose down` don't need the original compose file (require `--project-name`)
  • render port ranges as a group
  • container names use hyphens to produce a valid hostname
  • add support for `scale=0`
  • introduce `--compatibility` to support smooth(er) transition from V1

🔧 Bug Fixes & Patches (6)

  • fixes parsing compose file variables
  • `compose run` can receive stdin from another piped command
  • process local seccomp file set by `security_opt`
  • fix support for `compose run --label`
  • stop only the services that have been ran by `compose up` command
  • `compose config` escape `$` signs to produce a valid compose file
📄 View Raw Release Notes (Original Developer Log)
⚠️ **Compose v2 architecture and installation instructions differ from v1, see [README.md](https://github.com/docker/compose#where-to-get-docker-compose).** For backward compatibility with docker-compose v1.x, consider installing https://github.com/docker/compose-switch ## Features: - added support for `COMPOSE_IGNORE_ORPHANS` - `compose exec` and `compose down` don't need the original compose file (require `--project-name`) - render port ranges as a group - container names use hyphens to produce a valid hostname - add support for `scale=0` - introduce `--compatibility` to support smooth(er) transition from V1 - introduce `compose config --output` flag (defaults to stdout) - add support for `build.network` and `build.extrahosts` - ntroduce `compose up --attach` - fixes parsing compose file variables - added support for multiline values in `.env` file ## Bugfixes: - `compose run` can receive stdin from another piped command - process local seccomp file set by `security_opt` - fix support for `compose run --label` - stop only the services that have been ran by `compose up` command - `compose config` escape `$` signs to produce a valid compose file - fixed a concurrency issue with logs - apply configured `container_name` when recreating containers - `compose run --volume` (mistakely renamed --volumes) - support `--entrypoint=""` and `entrypoint: ""` to override Dockerfile's `ENTRYPOINT` - stop `compose log --follow` on `SIGINT` - fixed support for `bytes` values in `compose.yaml`