#61101 closed defect (bug) (fixed)
Remove `version` from `docker-compose.yml` file
Reported by: | desrosj | Owned by: | desrosj |
---|---|---|---|
Milestone: | 6.5.4 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Build/Test Tools | Keywords: | good-first-bug has-patch fixed-major |
Focuses: | Cc: |
Description
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 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: docker-compose/pull#7588
Change History (35)
This ticket was mentioned in PR #6492 on WordPress/wordpress-develop by @narenin.
6 months ago
#2
- Keywords has-patch added; needs-patch removed
Trac ticket: https://core.trac.wordpress.org/ticket/61101
#3
@
6 months ago
Hi @desrosj ,
I have fixed this in my PR.
Please find my PR : https://github.com/WordPress/wordpress-develop/pull/6492
6 months ago
#8
Thanks all! Fixed in https://core.trac.wordpress.org/changeset/58157.
#9
@
6 months ago
- Keywords fixed-major added; commit removed
- Resolution fixed deleted
- Status changed from closed to reopened
Reopening to backport to all branches currently able to receive security fixes.
Hi @desrosj,
I am working on this.