mirror of https://github.com/docker/cli.git
a7778806a0
The compose spec (https://compose-spec.io) defines the version to be optional, and implementations of the spec to check for supported attributes instead. While this change does not switch the `docker stack` implementation to use the compose-spec, it makes it function more similar. Previously, omitting a version number would either produce an error (as the field was required), or switched the handling to assume it was version 1.0 (which is deprecated). With this change, compose files without a version number will be handled as the latest version supported by `docker stack` (currently 3.10). This allows users that work with docker-compose or docker compose (v2) to deploy their compose file, without having to re-add a version number. Fields that are not supported by stackes (schema 3.10) will still produce an error. Signed-off-by: Sebastiaan van Stijn <github@gone.nl> |
||
---|---|---|
.. | ||
config_schema_v3.0.json | ||
config_schema_v3.1.json | ||
config_schema_v3.2.json | ||
config_schema_v3.3.json | ||
config_schema_v3.4.json | ||
config_schema_v3.5.json | ||
config_schema_v3.6.json | ||
config_schema_v3.7.json | ||
config_schema_v3.8.json | ||
config_schema_v3.9.json | ||
config_schema_v3.10.json | ||
doc.go |