Compose: Cannot open self /usr/local/bin/docker-compose or archive /usr/local/bin/docker-compose.pkg. (in ubuntu14.04 amd64)

Created on 20 Jan 2017  路  19Comments  路  Source: docker/compose

I install it by pip, and code as follow:
pip install docker-compose
chmod a+rx /usr/local/bin/docker-compose

so, please tell me how can I do?

Most helpful comment

i met this problem too and i finally solved this by downloading docker-compose with the
docker-compose-Linux-x86_64 rather than by curl command.

All 19 comments

same error

same error

how to do?

Same ere

same error

Related to #1135?

Note that the same error occurs if the docker-compose is corrupted (e.g., a network error when downloading via curl).
Cross-check that the sha265sum of the file is matching the ones listed: https://github.com/docker/compose/releases. If not, redownload and replace the corrupted file.

i met this problem too and i finally solved this by downloading docker-compose with the
docker-compose-Linux-x86_64 rather than by curl command.

I ran into this problem with a completely different project (MIT App Inventor). The TL;DR is that the way PyInstaller builds its executables makes them break if they're stripped or if prelink runs against them. This was supposed to be addressed here, but in the mean time, you can drop a file in /etc/prelink.conf.d/ with the contents of -b /path/to/docker-compose and that should keep prelink from mangling it.

same error

Same error. Download using curl not working. So I just followed as @armoour commented. Now it is working fine.
docker-compose

I see this is an ancient issue, but since it doesn't follow the template there is not enough information in either the original post or all the "same" posts to make progress, therefore I am closing, if you are still have problems then please open a new issue and provide all of the information requested by the "Bug Report" template you will be presented with.

download from https://github.com/docker/compose/releases don't use curl
rename file as docker-compose and place in /usr/local/bin/
provide rx permission to file
and check docker verison

Solved with this: sudo curl -L "https://github.com/docker/compose/releases/download/1.25.3/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

i met this problem too and i finally solved this by downloading docker-compose with the
docker-compose-Linux-x86_64 rather than by curl command.

This did not work for me either.

Solved with this: sudo curl -L "https://github.com/docker/compose/releases/download/1.25.3/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

This doesn't work for me on ubuntu

download from https://github.com/docker/compose/releases don't use curl
rename file as docker-compose and place in /usr/local/bin/
provide rx permission to file
and check docker verison

doesn't work for me

I had a similar error message. Here is how I have resolved it:

  1. Check the file's permission flags: ls -al /usr/local/bin/docker-compose It should show something like: -rwxr-x--- 1 root root 17586312 May 18 08:02 /usr/local/bin/docker-compose
  2. Make sure your user(like root or any other) is either is root or is in root group based on the above returned result.
    If your user is NOT in either of above in step#2, then:
  3. Add read and execute permissions to 'other' groups: chmod o+rx /usr/local/bin/docker-compose
  4. And be a happy camper now :)

P.S. make sure you are changing or checking permissions of the actual file and not a link to it!

download from https://github.com/docker/compose/releases don't use curl
rename file as docker-compose and place in /usr/local/bin/
provide rx permission to file
and check docker verison

useful锛宲roblem fix.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bergtwvd picture bergtwvd  路  3Comments

DhairyashilBhosale picture DhairyashilBhosale  路  3Comments

HackerWilson picture HackerWilson  路  3Comments

dazorni picture dazorni  路  3Comments

foxx picture foxx  路  3Comments