compose - fix permissions issue for curl (#4248)

This commit is contained in:
Andriy Maletsky 2017-08-18 01:00:52 +03:00 committed by Misty Stanley-Jones
parent c4729640f9
commit 4b85167975
1 changed files with 4 additions and 10 deletions

View File

@ -105,24 +105,18 @@ by step instructions are also included below.
`$dockerComposeVersion` with the specific version of Compose you want to use:
```bash
curl -L
sudo curl -L
https://github.com/docker/compose/releases/download/$dockerComposeVersion/docker-compose-`uname
-s`-`uname -m` > /usr/local/bin/docker-compose
-s`-`uname -m` -o /usr/local/bin/docker-compose
```
For example, to download Compose version {{site.compose_current}}, the command
is:
```bash
curl -L https://github.com/docker/compose/releases/download/{{site.compose_current}}/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
sudo curl -L https://github.com/docker/compose/releases/download/{{site.compose_current}}/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
```
> Got a "Permission denied" error?
>
If so, your `/usr/local/bin` directory probably isn't writable and
you'll need to install Compose as the superuser. Run `sudo -i`, then
run the download and install commands below, then `exit`.
> Use the latest Compose release number in the download command.
>
The above command is an _example_, and it may become out-of-date once
@ -189,7 +183,7 @@ install compose as a container run this command. Be sure to replace the version
number with the one that you want, if this example is out-of-date:
```bash
$ curl -L --fail https://github.com/docker/compose/releases/download/{{site.compose_current}}/run.sh > /usr/local/bin/docker-compose
$ sudo curl -L --fail https://github.com/docker/compose/releases/download/{{site.compose_current}}/run.sh -o /usr/local/bin/docker-compose
$ sudo chmod +x /usr/local/bin/docker-compose
```