Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
liujunjiun opened this issue Jan 20, 2017 · 20 comments

Comments

@liujunjiun
Copy link

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?

@lynn-long
Copy link

same error

1 similar comment
@doubimike
Copy link

same error

@zhaixue
Copy link

zhaixue commented May 16, 2017

how to do?

@m1m6
Copy link

m1m6 commented Nov 13, 2017

Same ere

@yuezhongxin
Copy link

same error

@AnthonyMastrean
Copy link

Related to #1135?

@sochi
Copy link

sochi commented Aug 17, 2018

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.

@armoour
Copy link

armoour commented Oct 4, 2018

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.

@vectorsigma
Copy link

vectorsigma commented Dec 6, 2018

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.

@csrftoken
Copy link

same error

@bhachauk
Copy link

bhachauk commented Mar 8, 2019

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

@ijc
Copy link

ijc commented Mar 8, 2019

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.

@ijc ijc closed this as completed Mar 8, 2019
@deepak6446
Copy link

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

@Enigma228322
Copy link

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

@davidshare
Copy link

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.

@davidshare
Copy link

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

@davidshare
Copy link

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

@RusmanCool
Copy link

RusmanCool commented May 21, 2020

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!

@zouyunke
Copy link

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,problem fix.

@StefanRickli
Copy link

This is a documentation issue.

Followed the installation procedure according to https://docs.docker.com/compose/install/#install-compose-on-linux-systems.
(debian/buster here)

Ran into the same problem today while setting up Gitlab-Runner.
Solved it by setting file permissions for docker-compose to 755.

The installation manual should be updated accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests