Skip to content

docs: remove obsolete compose version field from Go and OpenTelemetry guides#25227

Merged
dvdksn merged 2 commits into
docker:mainfrom
emmayusufu:docs/remove-obsolete-compose-version
Jun 2, 2026
Merged

docs: remove obsolete compose version field from Go and OpenTelemetry guides#25227
dvdksn merged 2 commits into
docker:mainfrom
emmayusufu:docs/remove-obsolete-compose-version

Conversation

@emmayusufu
Copy link
Copy Markdown
Contributor

The Compose files in the Go (guides/golang/develop.md) and OpenTelemetry (guides/opentelemetry.md) guides start with a top-level version: field. The Compose reference already documents this as obsolete ("Version top-level element (obsolete)" in reference/compose-file/version-and-name.md), and running docker compose up on these files prints a warning: the attribute \version` is obsolete, it will be ignored, please remove it`.

This removes the version: line from both so the guides match the reference and don't emit a warning when followed. I verified docker compose config is clean on both files after the change. Left the swarm guide (docker stack deploy) untouched, since that still uses the versioned format.

@netlify
Copy link
Copy Markdown

netlify Bot commented Jun 2, 2026

Deploy Preview for docsdocker ready!

Name Link
🔨 Latest commit 6bc89b4
🔍 Latest deploy log https://app.netlify.com/projects/docsdocker/deploys/6a1e2bcebac4380008e28d04
😎 Deploy Preview https://deploy-preview-25227--docsdocker.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Contributor

@dvdksn dvdksn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@dvdksn dvdksn merged commit a464561 into docker:main Jun 2, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants