This may be as simple as deleting the hyphen from docker-compose. Or not...
Compose V2 integrates compose functions into the Docker platform, continuing to support most of the previous docker-compose features and flags. You can run Compose V2 by replacing the hyphen (-) with a space, using docker compose, instead of docker-compose.
The compose command in the Docker CLI supports most of the docker-compose commands and flags. It is expected to be a drop-in replacement for docker-compose.
Deadline: "End of June 2023"
What
docker-compose is deprecated and users are encouraged to switch to Docker compose v2.
This may be as simple as deleting the hyphen from
docker-compose
. Or not...