Docker Compose outputs the following warning message when run:
version is obsolete
Background
The version definition belongs to the Compose V1 specification and is no longer supported. Compose V1 is no longer included in current releases of Docker Desktop and the final release was in May 2021.
Issue
The repo uses an obsolete
version
file format definition in Docker compose files:version: '3.8'
file format.version: '3'
file format.Docker Compose outputs the following warning message when run:
Background
The
version
definition belongs to the Compose V1 specification and is no longer supported. Compose V1 is no longer included in current releases of Docker Desktop and the final release was in May 2021.Compose V2, the current version, released in 2020, ignores the
version
top-level element in thecompose.yml
file. See Compose history and Version top-level element (obsolete).Change
Remove the obsolete
version:
file format definition fromVerification
On Ubunu
22.04.4
LTS, Node.jsv20.13.1
LTSExecute:
and confirm that all images are built without errors or warnings. Continue with
and confirm that the image builds without errors or warnings and runs successfully.