[wp-trac] [WordPress Trac] #61101: Remove `version` from `docker-compose.yml` file
WordPress Trac
noreply at wordpress.org
Tue Apr 30 15:19:48 UTC 2024
#61101: Remove `version` from `docker-compose.yml` file
------------------------------+----------------------------------------
Reporter: desrosj | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.5.3
Component: Build/Test Tools | Version:
Severity: normal | Keywords: needs-patch good-first-bug
Focuses: |
------------------------------+----------------------------------------
I've been unable to pinpoint where, but a recent release of Docker Desktop
or Docker Compose has surfaced a new warning in Docker pointing out that
the `docker-compose.yml` file is obsolete.
{{{
WARN[0000] /Users/username/Sites/wordpress-develop/docker-compose.yml:
`version` is obsolete
}}}
According to the [https://github.com/compose-spec/compose-
spec/blob/master/spec.md#version-top-level-element-obsolete Docker Compose
spec]:
{{{
The top-level version property is defined by the Compose Specification for
backward compatibility. It is only informative you'll receive a warning
message that it is obsolete if used.
}}}
In my testing, removing the `version` seems to work just fine. This will
need to be backported to all branches.
Related: [https://github.com/docker/compose/pull/7588 docker-
compose/pull#7588]
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61101>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list