Docker-compose for centos

i have downloaded docker compose from git, moved to /usr/local/bin and gave the execute permissions.
The problem is i’m not able to run docker-compose commands directly.Instead i had to run /usr/local/bin/./docker-compose version.
I have created an alias for this full path but i think there is something im missing here as in windows i run the command directly

you are working in windows?

no. i’m using centos on virtual box

1 Like

Hi @Vikram,
Check the steps below :

1- Run this command to download the current stable release of Docker Compose:

sudo curl -L "$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

2- Apply executable permissions to the binary:

sudo chmod +x /usr/local/bin/docker-compose

3- Note : If the command docker-compose fails after installation, check your path. You can also create a symbolic link to /usr/bin or any other directory in your path.

For example:

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

Reference :

Sorry for the delay.

Hope this helps!