Been trying to work with docker-compose and I have followed soo many steps on getting it install and just running the docker-compose --version and nothing!!!
Here is my output. I have also tried these other commands here
sudo curl -L "https://github.com/docker/compose/releases/download/1.24.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
$ docker-compose --version
Output below:
pi@hasspi:~ $ sudo apt-get install python-pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-pip is already the newest version (9.0.1-2+rpt2).
0 upgraded, 0 newly installed, 0 to remove and 16 not upgraded.
pi@hasspi:~ $ sudo pip install docker-compose
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: docker-compose in /usr/local/lib/python2.7/dist-packages (1.23.2)
Requirement already satisfied: PyYAML<4,>=3.10 in /usr/local/lib/python2.7/dist-packages (from docker-compose) (3.13)
Requirement already satisfied: backports.ssl-match-hostname>=3.5; python_version < "3.5" in /usr/local/lib/python2.7/dist-packages (from docker-compose) (3.7.0.1)
Requirement already satisfied: websocket-client<1.0,>=0.32.0 in /usr/local/lib/python2.7/dist-packages (from docker-compose) (0.54.0)
Requirement already satisfied: docker<4.0,>=3.6.0 in /usr/local/lib/python2.7/dist-packages (from docker-compose) (3.7.0)
Requirement already satisfied: ipaddress>=1.0.16; python_version < "3.3" in /usr/lib/python2.7/dist-packages (from docker-compose) (1.0.17)
Requirement already satisfied: dockerpty<0.5,>=0.4.1 in /usr/local/lib/python2.7/dist-packages (from docker-compose) (0.4.1)
Requirement already satisfied: texttable<0.10,>=0.9.0 in /usr/local/lib/python2.7/dist-packages (from docker-compose) (0.9.1)
Requirement already satisfied: enum34<2,>=1.0.4; python_version < "3.4" in /usr/lib/python2.7/dist-packages (from docker-compose) (1.1.6)
Requirement already satisfied: requests!=2.11.0,!=2.12.2,!=2.18.0,<2.21,>=2.6.1 in /usr/lib/python2.7/dist-packages (from docker-compose) (2.12.4)
Requirement already satisfied: six<2,>=1.3.0 in /usr/lib/python2.7/dist-packages (from docker-compose) (1.10.0)
Requirement already satisfied: jsonschema<3,>=2.5.1 in /usr/local/lib/python2.7/dist-packages (from docker-compose) (2.6.0)
Requirement already satisfied: docopt<0.7,>=0.6.1 in /usr/local/lib/python2.7/dist-packages (from docker-compose) (0.6.2)
Requirement already satisfied: cached-property<2,>=1.2.0 in /usr/local/lib/python2.7/dist-packages (from docker-compose) (1.5.1)
Requirement already satisfied: docker-pycreds>=0.4.0 in /usr/local/lib/python2.7/dist-packages (from docker<4.0,>=3.6.0->docker-compose) (0.4.0)
Requirement already satisfied: functools32; python_version == "2.7" in /usr/local/lib/python2.7/dist-packages (from jsonschema<3,>=2.5.1->docker-compose) (3.2.3.post2)
pi@hasspi:~ $ docker-compose --version
/usr/local/bin/docker-compose: line 1: Not: command not found
pi@hasspi:~ $