DevOps & Cloud MIGRATION GUIDE HIGH MIGRATION EFFORT

Docker Compose 1 to 2 Migration Guide

Upgrading Docker Compose from v1 to v2 spans 114 intermediate releases with 4 breaking changes and 6 resolved security advisories. Review the actionable checklist, required dependency adjustments, and CLI commands below.

Jump to Breaking Changes (4) ↓ View context.txt (AI Prompts) Docker Compose Security Track Record → Docker Compose Overview
Migration Risk
High
Based on 4 breaking changes
Breaking Changes
4
Deprecations & removed APIs
Max Release Impact
9/10
Peak architectural complexity
Resolved CVEs
6
Vulnerabilities patched

Step 1: Execute Upgrade Command

Ensure you have a clean git tree before applying package updates.

Refer to the official package manager for Docker Compose to target version v2.40.3.

Step 2: Breaking Changes & Incompatible APIs (4)

Inspect and check off each breaking change verified in your codebase.

0 / 4 resolved
vv2.8.0
Inspect v2.8.0 release notes →
vv2.9.0
Inspect v2.9.0 release notes →
vv2.9.0
Inspect v2.9.0 release notes →
vv2.24.0
Inspect v2.24.0 release notes →

Step 3: Patched Security Advisories (6)

Upgrading to v2 resolves the following known vulnerabilities.

All Docker Compose CVEs →
Advisory ID Fixed in Version Severity (CVSS) Vulnerability Summary
CVE-2022-2879 v2.12.0 UNRATED Security advisory CVE-2022-2879 patched in docker-compose v2.12.0
CVE-2022-2880 v2.12.0 UNRATED Security advisory CVE-2022-2880 patched in docker-compose v2.12.0
CVE-2022-41715 v2.12.0 UNRATED Security advisory CVE-2022-41715 patched in docker-compose v2.12.0
CVE-2022-39253 v2.12.1 UNRATED Security advisory CVE-2022-39253 patched in docker-compose v2.12.1
CVE-2022-27664 v2.15.1 UNRATED Security advisory CVE-2022-27664 patched in docker-compose v2.15.1
CVE-2023-28840 v2.17.3 UNRATED Security advisory CVE-2023-28840 patched in docker-compose v2.17.3

Step 4: Intermediate Releases (114)

Chronological progression of releases incorporated in this upgrade.

vv2.40.3 Oct 30, 2025
Impact: 3/10 View notes →
vv2.40.2 Oct 22, 2025
Impact: 2/10 View notes →
vv2.40.1 Oct 17, 2025
Impact: 3/10 View notes →
vv2.40.0 Oct 03, 2025
Impact: 6/10 View notes →
vv2.39.4 Sep 19, 2025
Impact: 3/10 View notes →
vv2.39.3 Sep 09, 2025
Impact: 4/10 View notes →
vv2.39.2 Aug 08, 2025
Impact: 3/10 View notes →
vv2.39.1 Jul 24, 2025
Impact: 2/10 View notes →
vv2.39.0 Jul 24, 2025
Impact: 6/10 View notes →
vv2.38.2 Jul 08, 2025
Impact: 3/10 View notes →
vv2.38.1 Jun 30, 2025
Impact: 3/10 View notes →
vv2.38.0 Jun 30, 2025
Impact: 6/10 View notes →
vv2.37.3 Jun 24, 2025
Impact: 4/10 View notes →
vv2.37.2 Jun 20, 2025
Impact: 3/10 View notes →
vv2.37.1 Jun 12, 2025
Impact: 3/10 View notes →
vv2.37.0 Jun 05, 2025
Impact: 7/10 View notes →
vv2.36.2 May 23, 2025
Impact: 3/10 View notes →
vv2.36.1 May 19, 2025
Impact: 4/10 View notes →
vv2.36.0 May 07, 2025
Impact: 7/10 View notes →
vv2.35.1 Apr 17, 2025
Impact: 3/10 View notes →
vv2.35.0 Apr 10, 2025
Impact: 7/10 View notes →
vv2.34.0 Mar 14, 2025
Impact: 6/10 View notes →
vv2.33.1 Feb 21, 2025
Impact: 4/10 View notes →
vv2.33.0 Feb 12, 2025
Impact: 7/10 View notes →
vv2.32.4 Jan 15, 2025
Impact: 2/10 View notes →
vv2.32.3 Jan 13, 2025
Impact: 3/10 View notes →
vv2.32.2 Jan 07, 2025
Impact: 3/10 View notes →
vv2.32.1 Dec 16, 2024
Impact: 2/10 View notes →
vv2.32.0 Dec 13, 2024
Impact: 6/10 View notes →
vv2.31.0 Nov 28, 2024
Impact: 6/10 View notes →
vv2.30.3 Nov 07, 2024
Impact: 2/10 View notes →
vv2.30.2 Nov 05, 2024
Impact: 3/10 View notes →
vv2.30.1 Oct 30, 2024
Impact: 3/10 View notes →
vv2.30.0 Oct 29, 2024
Impact: 7/10 View notes →
vv2.29.7 Sep 20, 2024
Impact: 3/10 View notes →
vv2.29.6 Sep 19, 2024
Impact: 2/10 View notes →
vv2.29.5 Sep 17, 2024
Impact: 3/10 View notes →
vv2.29.4 Sep 16, 2024
Impact: 3/10 View notes →
vv2.29.3 Sep 12, 2024
Impact: 3/10 View notes →
vv2.29.2 Aug 16, 2024
Impact: 3/10 View notes →
vv2.29.1 Jul 23, 2024
Impact: 3/10 View notes →
vv2.29.0 Jul 17, 2024
Impact: 6/10 View notes →
vv2.28.1 Jun 24, 2024
Impact: 2/10 View notes →
vv2.28.0 Jun 21, 2024
Impact: 3/10 View notes →
vv2.27.3 Jun 21, 2024
Impact: 2/10 View notes →
vv2.27.2 Jun 20, 2024
Impact: 4/10 View notes →
vv2.27.1 May 24, 2024
Impact: 4/10 View notes →
vv2.27.0 Apr 24, 2024
Impact: 6/10 View notes →
vv2.26.1 Mar 29, 2024
Impact: 3/10 View notes →
vv2.26.0 Mar 22, 2024
Impact: 6/10 View notes →
vv2.25.0 Mar 15, 2024
Impact: 6/10 View notes →
vv2.24.7 Mar 06, 2024
Impact: 5/10 View notes →
vv2.24.6 Feb 15, 2024
Impact: 3/10 View notes →
vv2.24.5 Jan 30, 2024
Impact: 3/10 View notes →
vv2.24.4 Jan 29, 2024
Impact: 4/10 View notes →
vv2.24.3 Jan 24, 2024
Impact: 3/10 View notes →
vv2.24.2 Jan 22, 2024
Impact: 3/10 View notes →
vv2.24.1 Jan 18, 2024
Impact: 3/10 View notes →
vv2.24.0 Breaking Jan 11, 2024
Impact: 9/10 View notes →
vv2.23.3 Nov 23, 2023
Impact: 2/10 View notes →
vv2.23.2 Nov 22, 2023
Impact: 4/10 View notes →
vv2.23.1 Nov 16, 2023
Impact: 5/10 View notes →
vv2.23.0 Oct 18, 2023
Impact: 6/10 View notes →
vv2.22.0 Sep 21, 2023
Impact: 7/10 View notes →
vv2.21.0 Aug 30, 2023
Impact: 5/10 View notes →
vv2.20.3 Aug 11, 2023
Impact: 5/10 View notes →
vv2.20.2 Jul 19, 2023
Impact: 5/10 View notes →
vv2.20.1 Jul 18, 2023
Impact: 5/10 View notes →
vv2.20.0 Jul 11, 2023
Impact: 5/10 View notes →
vv2.19.1 Jun 29, 2023
Impact: 5/10 View notes →
vv2.19.0 Jun 21, 2023
Impact: 5/10 View notes →
vv2.18.1 May 17, 2023
Impact: 5/10 View notes →
vv2.18.0 May 16, 2023
Impact: 5/10 View notes →
vv2.17.3 Apr 20, 2023
Impact: 5/10 View notes →
vv2.17.2 Mar 26, 2023
Impact: 5/10 View notes →
vv2.17.1 Mar 24, 2023
Impact: 5/10 View notes →
vv2.17.0 Mar 22, 2023
Impact: 5/10 View notes →
vv2.16.0 Feb 08, 2023
Impact: 5/10 View notes →
vv2.15.1 Jan 09, 2023
Impact: 5/10 View notes →
vv2.15.0 Jan 05, 2023
Impact: 5/10 View notes →
vv2.14.2 Dec 20, 2022
Impact: 5/10 View notes →
vv2.14.1 Dec 15, 2022
Impact: 5/10 View notes →
vv2.14.0 Dec 02, 2022
Impact: 5/10 View notes →
vv2.13.0 Nov 23, 2022
Impact: 5/10 View notes →
vv2.12.2 Oct 21, 2022
Impact: 5/10 View notes →
vv2.12.1 Oct 21, 2022
Impact: 5/10 View notes →
vv2.12.0 Oct 18, 2022
Impact: 5/10 View notes →
vv2.11.2 Sep 27, 2022
Impact: 5/10 View notes →
vv2.11.1 Sep 20, 2022
Impact: 5/10 View notes →
vv2.11.0 Sep 14, 2022
Impact: 5/10 View notes →
vv2.10.2 Aug 26, 2022
Impact: 5/10 View notes →
vv2.10.1 Aug 24, 2022
Impact: 5/10 View notes →
vv2.10.0 Aug 19, 2022
Impact: 5/10 View notes →
vv2.9.0 Breaking Aug 01, 2022
Impact: 7/10 View notes →
vv2.8.0 Breaking Jul 29, 2022
Impact: 7/10 View notes →
vv2.7.0 Jul 20, 2022
Impact: 5/10 View notes →
vv2.6.1 Jun 23, 2022
Impact: 5/10 View notes →
vv2.6.0 May 30, 2022
Impact: 5/10 View notes →
vv2.5.1 May 17, 2022
Impact: 5/10 View notes →
vv2.5.0 Apr 29, 2022
Impact: 5/10 View notes →
vv2.4.1 Apr 04, 2022
Impact: 5/10 View notes →
vv2.4.0 Apr 01, 2022
Impact: 5/10 View notes →
vv2.3.4 Mar 25, 2022
Impact: 5/10 View notes →
vv2.3.3 Mar 09, 2022
Impact: 5/10 View notes →
vv2.3.2 Mar 08, 2022
Impact: 5/10 View notes →
vv2.3.1 Mar 07, 2022
Impact: 5/10 View notes →
vv2.3.0 Mar 04, 2022
Impact: 5/10 View notes →
vv2.2.3 Jan 06, 2022
Impact: 5/10 View notes →
vv2.2.2 Dec 03, 2021
Impact: 5/10 View notes →
vv2.2.1 Nov 29, 2021
Impact: 5/10 View notes →
vv2.1.1 Nov 08, 2021
Impact: 5/10 View notes →
vv2.1.0 Nov 03, 2021
Impact: 5/10 View notes →
vv2.0.1 Sep 30, 2021
Impact: 5/10 View notes →
vv2.0.0 Sep 28, 2021
Impact: 5/10 View notes →
Explore More Docker Compose Intelligence

Track real-time updates, compare against alternatives, or audit CVEs.

Overview Latest Release Security Hub Alternatives