I can check if docker
is installed through the which docker
or command -v docker
commands. But I need to check if docker's compose
plugin is installed (I will use it like docker compose up -d
later).
Write on terminal:
docker compose version
The output must look like:
Docker Compose version vX.Y.Z
Source: https://docs.docker.com/engine/reference/commandline/compose/
There's an alternative way if it doesn't work.
Write on terminal:
docker-compose --version
The return would look like:
docker-compose version X.Y.Z, build <identifier>