Docker Compose installed but not found in system path

Even though docker compose is installed, as confirmed by running docker-compose -v (which correctly displays the version), running one of the following commands might return empty output, indicating that the system cannot find the binary in expected path.

Steps to Identify the Symptom

Execute the commands below on the MCM server to verify if the system PATH includes docker-compose:
Command -v docker-compose
Sudo command -v docker-compose
If these commands return no output, it indicates that the system PATH is not configured for docker-compose.

Possible Cause

  • This suggests that an instruction from the installation documentation, specifically creating a symlink for docker-compose, was not followed.
  • Refer to:

    • Step 6(b) in the instructions for installation using the dnf command.

    • Step 5(b) in the instructions for installation using yum.

Solution

This issue can be resolved by running the following command and re-running the installation process:

Sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose

After creating the symlink, retry the installation.