Home Explore Blog CI



docker

content/includes/swarm-compose-compat.md
1e5fcbaea55150c5419e17cf5962aaad460eb60a11eb3424000000030000019c
> [!NOTE]
>
> The `docker stack deploy` command uses the legacy
> [Compose file version 3](/reference/compose-file/legacy-versions/)
> format, used by Compose V1. The latest format, defined by the
> [Compose specification](/reference/compose-file/)
> isn't compatible with the `docker stack deploy` command.
>
> For more information about the evolution of Compose, see
> [History of Compose](/compose/history/).

Chunks
015163a7 (1st chunk of `content/includes/swarm-compose-compat.md`)
Title: Docker Stack Deploy and Compose File Versions
Summary
The `docker stack deploy` command utilizes the older Compose file version 3 format, which is not compatible with the latest Compose specification. Refer to the Compose documentation for details on the evolution and history of Compose.