Question: Permission Denied on curl and save for docker compose #652
Comments
I believe you meant https://github.com/docker/compose. @aanand ? |
Most likely your You won't need |
I'm having this problem too and I'm kinda linux newbie :) Can someone help me? |
@luisrudge for compose or machine? |
Oh, sorry! It's for compose! |
@luisrudge ok np :) Mind if I close this one? |
Yes! Thanks! |
i'm facing same issue for docker machine, please redirect me to the solution @ehazlett |
@joeyhipolito @aanand kindly help |
@tarun6006 The problem/solution is likely the same:
|
in terminate input |
Oh thanks @zhangqinghe it fixed the problem for me |
I found this approach easier. |
@zhangqinghe this solves the problem. thanks. |
To me sudo -i before, solved the problem. |
@zhangqinghe thanks . this solves my problem. |
Please DO NOT do this. This will have far-reaching permission changes which are likely beyond the scope of what you'd actually like to accomplish. |
Please DO NOT do this either (it will change the owner of every single file recursively in Doing something like this is very likely to blow up in your face eventually. In Instead, if needed, consider this type of operation instead. Save the file to a directory you own and then $ curl -L https://github.com/docker/compose/releases/download/1.8.0/docker-compose-`uname -s`-`uname -m` \
>~/docker-compose
$ chmod +x ~/docker-compose
$ sudo mv ~/docker-compose /usr/local/bin/docker-compose Much safer with much less far-reaching consequences. |
From Docker documentation:
|
nathanleclaire suggestion worked for me. Thanks |
Google brings me here.... Please, please PLEASE... use the @nathanleclaire solution |
What about this: sudo usermod -aG docker your-user |
make sure docker-compose is executable (chmod +x /usr/local/bin/docker-compose) |
No need to mess with permissions on all files inside
Do this instead
|
Please use @nathanleclaire 's solution, it works very well for me. |
this worked on Ubuntu 18.04 |
this worked for me :D |
This (or any of the others mentioning |
For what it's worth: the After I started the (now upgraded) Docker desktop application and authorized it when asked for my administrator password, the error was gone. So Docker fixed the permissions itself. |
This code alone can solve this problem |
In the instructions for installing docker-compose, you can do :
But you cannot intall it because:
I don't want to do sudo, because I wanted it to be like my previous installs and usage of docker
No sudo...
What is the proper way of setting it up?
The text was updated successfully, but these errors were encountered: