docker-compose: command not found
bepersevering opened this issue · comments
The Error message:
/bin/bash: docker-compose: command not found
make: *** No rule to make target 'nginx', needed by 'infra'. Stop.
I find that I installed the latest docker version, and there is command 'docker compose' instead of 'docker-compose'.So, I modify the Makefile content
COMPOSE := docker-compose
to
COMPOSE := docker compose
and then, it well work.
My Environment:
Ubuntu 20.04.4 LTS
Linux build 5.15.0-41-generic #44~20.04.1-Ubuntu SMP Fri Jun 24 13:27:29 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Docker Version:
Docker version 20.10.18, build b40c2f6
docker compose:
Docker Compose version v2.10.2