Making this change has enabled a number of enhancements, including adding the compose command directly into the Docker CLI, being able to “up” a Compose application on cloud platforms by simply switching the Docker context, and launching of Amazon ECS and Microsoft ACI.
Introduction of the Compose specification makes a clean distinction between the Compose YAML file model and the docker-compose implementation. See the section Installing Compose V2 for detailed instructions how to enable the drop-in replacement. Starting with Docker Desktop 3.4.0, you can run Compose V2 commands without modifying your invocations, by enabling the drop-in replacement of the previous docker-compose with the new command. You can test the Compose V2 by simply replacing the dash ( -) with a space, and by running docker compose, instead of docker-compose. The new Compose V2, which supports the compose command as part of the Docker CLI, is now available.Ĭompose V2 integrates compose functions into the Docker platform, continuing to support most of the previous docker-compose features and flags. Estimated reading time: 6 minutes Compose V2 and the new docker compose command