Page MenuHomePhabricator

docker-compose.yml `version` is now obsolete with Docker Desktop v4.29.0
Open, Needs TriagePublic

Description

Today, I upgrade my DockerDesktop app (which comes with docker-compose) on Mac M1 to version 4.29.0 (build 145265) and I have a warning when I want to connect to the mediawiki named docker container saying:

WARN[0000] .../mwcore/docker-compose.yml: `version` is obsolete

v4.29.0 of Docker Desktop runs version 26.0.0 of the Docker Engine and docker-compose version 2.26.1 which means at this point in time, the version top-level element is no longer necessary and can be removed completely (doc).

As a MediaWiki developer on Mac (as I currently see for myself), if you run into this warning, you can ignore it for now, it's harmless but we'll need to remove it in the near future as Compose doesn't use version numbers to select an exact schema to validate compose files anyways.