Skip to content

docker-compose: Drop the obsolete version field - #1499

Merged
marcleblanc2 merged 1 commit into
mainfrom
marc/drop-compose-version
Nov 13, 2026
Merged

marcleblanc2 merged 1 commit into
mainfrom
marc/drop-compose-version

Conversation

@marcleblanc2

@marcleblanc2 marcleblanc2 commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Context

Compose ignores the top-level version field, and has warned about it on every command since v2.25.0

Solution

Remove version: '2.4' from the five Compose files that had it

Checklist

  • All images have a valid tag and SHA256 sum (no image changes)

Test plan

config output matches main for every file, on Compose v5.7.1 and v1.29.0 (the documented minimum), apart from the version line that v1.29.0 prints. The v5.7.1 warning is gone

Compose ignores the top-level version field, and has warned about it on every command since v2.25.0. Compose v1.29.0, the documented minimum, reads the files the same way without it.
@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

@marcleblanc2
marcleblanc2 added this pull request to stack #1500 November 13, 2026 01:41
@marcleblanc2
marcleblanc2 merged commit 2ece6a2 into main Nov 13, 2026
4 checks passed
@marcleblanc2
marcleblanc2 deleted the marc/drop-compose-version branch November 13, 2026 02:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants