-
Notifications
You must be signed in to change notification settings - Fork 113
Closed
Copy link
Labels
enhancementNew feature or requestNew feature or requesthacktoberfest-acceptedlevel 110 points10 pointsrecodethis is label for leaderboardthis is label for leaderboard
Milestone
Description
Is there an existing issue for this?
- I have searched the existing issues
Feature Description
Problem
When running docker compose up
with the current docker-compose.yml
, Docker Compose v2 displays this warning:
WARN[0000] the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion
This happens because the version
attribute is no longer used in the Compose specification. It can cause confusion for contributors and new users.
Proposed Solution
Remove the obsolete version
field from the docker-compose.yml
. The Compose spec automatically determines the correct version, so this field is unnecessary.
Use Case
- Docker Compose v2: The field is ignored, so removing it avoids warnings.
- Docker Compose v1: Deprecated and no longer maintained (EOL since 2021). Most modern environments use v2, so this change should be safe.
Benefits
- Cleaner configuration
- No confusing warnings for contributors
- Aligns with the current Docker Compose specification
Add ScreenShots
No response
Priority
Low
Record
- I have read the Contributing Guidelines
- Are you a GSSOC'25 contributor
- I want to work on this issue
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthacktoberfest-acceptedlevel 110 points10 pointsrecodethis is label for leaderboardthis is label for leaderboard
Type
Projects
Status
Done