Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Docker-compose does not install properly on Ubuntu 14.04—line 1: {error:Not Found}

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?

like image 900
mainframer Avatar asked Sep 24 '15 02:09

mainframer


People also ask

Is Docker compose installed with Docker?

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.

Is Docker compose backward compatible?

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.

What is the latest version of Docker compose?

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?


2 Answers

I had the same issue and the solution was simply:

sudo ln /usr/local/bin/docker-compose /usr/bin
like image 194
fdicarlo Avatar answered Sep 21 '22 06:09

fdicarlo


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.

like image 44
BMW Avatar answered Sep 18 '22 06:09

BMW