mikeizbicki / cmc-csci143

big data course materials
40 stars 76 forks source link

docker-compose Permission denied #425

Closed henrylong612 closed 9 months ago

henrylong612 commented 9 months ago

When I run the command below, I get the following output:

$ docker-compose build
-bash: /usr/bin/docker-compose: Permission denied

Is anyone else getting this? Why might this be?

mikeizbicki commented 9 months ago

The error message shows that you are trying to run the docker-compose that is located system-wide at /usr/bin/docker-compose instead of the one installed locally in your home folder at $HOME/.local/bin/docker-compose. (The later location is where pip install places programs.)

The most likely cause is that you haven't run pip3 install docker-compose. If you have done that and it's still not working, then the next most likely fix is re-logging into the lambda server.

rachelHoman commented 9 months ago

I had the same issue and re-logging into the lambda server fixed it!

henrylong612 commented 9 months ago

Thanks @mikeizbicki and @rachelHoman !

giffiecode commented 9 months ago

I run the pip3 install docker-compose but got this error

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-7gswn9ym/bcrypt/

rajabatra commented 9 months ago

When I run pip3 install docker-compose, I also get the error Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-buov5y7l/cryptography/