From 4b851679759b334c58d8985ea216d62356f65699 Mon Sep 17 00:00:00 2001 From: Andriy Maletsky Date: Fri, 18 Aug 2017 01:00:52 +0300 Subject: [PATCH] compose - fix permissions issue for curl (#4248) --- compose/install.md | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/compose/install.md b/compose/install.md index eeccf8d698..efb41d311d 100644 --- a/compose/install.md +++ b/compose/install.md @@ -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 ```