Closed ain closed 8 years ago
Installing manually works with:
curl -L https://github.com/docker/compose/releases/download/1.1.0/docker-compose-Darwin-x86_64
sudo mv docker-compose-Darwin-x86_64 /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
So this is a permissions issue, you are curling (with escalated privileges) and then privileges are dropped and file redirection is happening. You have quite a few options (here is just a few):
sudo bash -c "curl -L https://github.com/docker/compose/releases/download/1.1.0/docker-compose-
uname -s-
uname -m> /usr/local/bin/docker-compose"
sudo curl -o /usr/local/bin/docker-compose -L https://github.com/docker/compose/releases/download/1.1.0/docker-compose-
uname -s-
uname -m``sudo wget -O /usr/local/bin/docker-compose -L https://github.com/docker/compose/releases/download/1.1.0/docker-compose-
uname -s-
uname -m``curl -L https://github.com/docker/compose/releases/download/1.1.0/docker-compose-
uname -s-
uname -m| sudo tee -a /usr/local/bin/docker-compose >/dev/null
@sge-babrams the point of this PR was to resolve a failing curl command currently in the documentation. Whichever way that works in one go, developers need a simplistic way. My suggestion works on both, OS X and Linux in a single go.
We've already got a note in the docs about "Permission denied" errors, although it might not have been deployed when you read it:
Note: If you get a "Permission denied" error, your
/usr/local/bin
directory probably isn't writable and you'll need to install Compose as the superuser. Runsudo -i
, then the two commands above, thenexit
.
Closing this issue since it has been documented.
Despite following the installation command, installation fails:
Platform: