I am using Ubuntu 14.04
and I followed the exact steps of official docker-compose installation manual.
sudo su
curl -L https://github.com/docker/compose/releases/download/VERSION_NUM/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
But unfortunately, executing docker-compose
gave me an command not found
error.
shibin@87:~$ docker-compose
/usr/local/bin/docker-compose: line 1: {error:Not Found}: command not found
I tried open the /usr/local/bin/docker-compose
file and it indeed shows:
{error:Not Found}: command not found
Thus I guess docker-compose not properly installed, anyone has met the same issue?
If you installed Docker Desktop/Toolbox for either Windows or Mac, you already have Docker Compose! Play-with-Docker instances already have Docker Compose installed as well. If you are on a Linux machine, you will need to install Docker Compose.
Then in Docker Compose 1.27+, Docker deprecated the version property and it's mainly supported now for backwards compatibility. It supports everything without it.
The latest Compose file format is defined by the Compose Specification and is implemented by Docker Compose 1.27. 0+. Looking for more detail on Docker and Compose compatibility?
I had the same issue and the solution was simply:
sudo ln /usr/local/bin/docker-compose /usr/bin
If you have problems installing with curl, you can use pip instead:
pip install -U docker-compose
Then you need apply executable permissions to the binary:
chmod +x /usr/local/bin/docker-compose
Let me know if the problem is fixed or not.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With