In docker-compose.yml files we used to specify a version attribute, but nowadays is deprecated and no longer used. There's a warning message when using docker-compose.yml file with version attribute specified. Here's the warning message:
$ docker compose ps
WARN[0000] /dev/wazuh-docker/single-node/docker-compose.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion
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.
The Modified Files
single-node/docker-compose.yml
multi-node/docker-compose.yml
What did I modify
I removed the version attribute from both single-node/docker-compose.yml and multi-node/docker-compose.yml files.
Overview
In
docker-compose.yml
files we used to specify aversion
attribute, but nowadays is deprecated and no longer used. There's a warning message when usingdocker-compose.yml
file withversion
attribute specified. Here's the warning message:Official Resources
The official docker documentation said the following about the version attribute.
The Modified Files
single-node/docker-compose.yml
multi-node/docker-compose.yml
What did I modify
I removed the
version
attribute from both single-node/docker-compose.yml and multi-node/docker-compose.yml files.