読者です 読者をやめる 読者になる 読者になる

AKAI TSUKI

System development or Technical something

install docker-compose 1.10.1 on CentOS 7

install

I failed to get docker-compose as follows:

[vagrant@localhost ~]$ sudo curl -L https://github.com/docker/compose/releases/download/1.10.1/dock
er-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
-bash: /usr/local/bin/docker-compose: Permission denied
[vagrant@localhost ~]$

so, At first, I saved docker-compose to temporary directory.
and I moved file as follows:

[vagrant@localhost ~]$ sudo curl -L https://github.com/docker/compose/releases/download/1.10.1/docker-compose-`uname -s`-`uname -m` > /tmp/
-bash: /tmp/: Is a directory
[vagrant@localhost ~]$ sudo curl -L https://github.com/docker/compose/releases/download/1.10.1/docker-compose-`uname -s`-`uname -m` > /tmp/docker-compose
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   600    0   600    0     0    595      0 --:--:--  0:00:01 --:--:--   596
100 7930k  100 7930k    0     0   713k      0  0:00:11  0:00:11 --:--:--  811k
[vagrant@localhost ~]$ ls -l /tmp/
total 7936
-rw-rw-r-- 1 vagrant vagrant 8121118 Feb  5 17:54 docker-compose
-rwxrwxr-x 1 vagrant vagrant      33 Feb  5 15:43 vagrant-shell
[vagrant@localhost ~]$ ls -l /usr/local/bin/
total 0
[vagrant@localhost ~]$ mv /tmp/docker-compose /usr/local/bin/
mv: cannot move ‘/tmp/docker-compose’ to ‘/usr/local/bin/docker-compose’: Permission denied
[vagrant@localhost ~]$ sudo mv /tmp/docker-compose /usr/local/bin/
[vagrant@localhost ~]$ ls -l /usr/local/bin/
total 7932
-rw-rw-r-- 1 vagrant vagrant 8121118 Feb  5 17:54 docker-compose
[vagrant@localhost ~]$ chmod +x /usr/local/bin/docker-compose
[vagrant@localhost ~]$ ls -l /usr/local/bin/
total 7932
-rwxrwxr-x 1 vagrant vagrant 8121118 Feb  5 17:54 docker-compose
[vagrant@localhost ~]$ docker

check version

[vagrant@localhost ~]$ docker-compose --version
docker-compose version 1.10.1, build b252738
[vagrant@localhost ~]$