With recent version of Docker, Docker Compose is part of docker CLI and can be run using docker compose instead of docker-compose.
With my setup on Debian using Docker package repository the docker-compose command is not available (in remains available for user of Docker desktop according to Migrate to Compose V2 documentation).
Updating to the new syntax would ease the build of Docker image in up to date environment.
Problem
With recent version of Docker, Docker Compose is part of docker CLI and can be run using
docker compose
instead ofdocker-compose
. With my setup on Debian using Docker package repository thedocker-compose
command is not available (in remains available for user of Docker desktop according to Migrate to Compose V2 documentation). Updating to the new syntax would ease the build of Docker image in up to date environment.Proposed solution
Replace
docker-compose
bydocker compose
.