To move your project to a later version, see the UpgradingĮxtending services, each file must be of the The Compatibility Matrix shows Compose file versions mapped to Docker Engine releases. This format merges the 2.x and 3.x versions and is implemented by Compose 1.27.0+. The latest and recommended version of the Compose file format is defined by the Compose Specification. This is specified with a version: '3' or version: '3.1', etc., entry at the root of the YAML. Version 3.x, designed to be cross-compatible between Compose and the Docker Engine’s This is specified with a version: '2' or version: '2.1', etc., entry at the root of the YAML. This is specified by omitting a version key at the root of the YAML. There are three legacy versions of the Compose file format: (See also, the discussion inįor details on versions and how to upgrade, see With compatible Compose file format versions. Gives details on which versions of Docker Engine are supported, along However, if you are using an older version of Docker and want to determine whichĬompose release is compatible, refer to the Compose release We recommend keeping up-to-date with newer releases as much as possible. Looking for more detail on Docker and Compose compatibility? The latest Compose file format is defined by the Compose Specification and is implemented by Docker Compose 1.27.0+. For example, Compose file formatģ.0 was first introduced in Compose release Itself is on a release schedule, as shown in Composeĭo not necessarily increment with each release. In addition to Compose file format versions shown in the table, the Compose This table shows which Compose file versions support specific Docker releases. The topics below explain the differences among the versions, Docker EngineĬompatibility, and how to upgrade. The Compose file formats are now described in these references, specific to each version. Networks, and volumes for a Docker application. The Compose file is a YAML file defining services, Make sure you switch to Compose V2 with the docker compose CLI plugin or by activating the Use Docker Compose V2 setting in Docker Desktop.įor more information, see the History of Compose. The latest and recommended version of Compose is the Compose Specification. This page contains information on the legacy versions of Compose, also collectively referred to as Compose V1.įrom the end of June 2023 Compose V1 won’t be supported anymore.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |