# Migration Context: Docker Compose v1 -> v2 # Generated by Changelogs.us: 2026-11-30T03:04:49.997315+00:00 # Target Version: v2.40.3 # Upgrade Command: N/A # Breaking Changes: 4 # Security Fixes: 6 ## Executive Summary Upgrading Docker Compose from 1 to 2 involves 114 releases with risk rating High. ## Breaking Changes List: - [vv2.8.0] This release introduced a breaking change via compose-go `v1.3.0` and this [PR](https://github.com/compose-spec/compose-go/pull/294).: - [vv2.9.0] This version revert the breaking changes introduce in [Compose `v2.8.0`](https://github.com/docker/compose/releases/tag/v2.8.0) by [compose-go `v1.3.0`](https://github.com/compose-spec/compose-go/releases/tag/v1.3.0): - [vv2.9.0] update to compose-go v1.4.0 as previous version introduced breaking changes by @glours in https://github.com/docker/compose/pull/9700: - [vv2.24.0] Breaking change :warning: * service hash computation logic has been updated to fully ignore replicas/scale. Due to this change, after upgrade all services will be recreated.: ## Patched Vulnerabilities (CVEs): - [CVE-2022-2879] (Severity: UNRATED) in vv2.12.0: Security advisory CVE-2022-2879 patched in docker-compose v2.12.0 - [CVE-2022-2880] (Severity: UNRATED) in vv2.12.0: Security advisory CVE-2022-2880 patched in docker-compose v2.12.0 - [CVE-2022-41715] (Severity: UNRATED) in vv2.12.0: Security advisory CVE-2022-41715 patched in docker-compose v2.12.0 - [CVE-2022-39253] (Severity: UNRATED) in vv2.12.1: Security advisory CVE-2022-39253 patched in docker-compose v2.12.1 - [CVE-2022-27664] (Severity: UNRATED) in vv2.15.1: Security advisory CVE-2022-27664 patched in docker-compose v2.15.1 - [CVE-2023-28840] (Severity: UNRATED) in vv2.17.3: Security advisory CVE-2023-28840 patched in docker-compose v2.17.3 ## Instructions for AI Assistant: When migrating user code from Docker Compose 1 to 2, scan for the deprecated APIs and breaking changes above and refactor code to use modern vv2.40.3 idioms.