Skip to content

Conversation

@makotore
Copy link

Remove the version attribute from the docker-compose.yml file since it is now deprecated.

Remove the `version` attribute from the `docker-compose.yml` file
since it is now deprecated.
@CLAassistant
Copy link

CLAassistant commented Jul 31, 2025

CLA assistant check
All committers have signed the CLA.

Copy link

@karlskewes karlskewes left a comment

Choose a reason for hiding this comment

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

https://docs.docker.com/reference/compose-file/version-and-name/#version-top-level-element-obsolete

The top-level version property is defined by the Compose Specification for backward compatibility. It is only informative and you'll receive a warning message that it is obsolete if used.

With the change the following error disappears

$ docker-compose up -d
WARN[0000] <redacted>/github.com/grafana/tutorial-environment/docker-compose.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion 

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.

3 participants