-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
/usr/local/bin/docker-compose: line 1: Not: command not found #6268
Comments
Hi, In the future please fill out the issue template properly, as this is painful to read through. |
There is no info about if OS is supported or unsupported, so this is bug for sure. |
If you open the '/usr/local/bin/docker-compose' file, it would be definitely 'Not Found'.(9 bytes) |
use this should work. sudo curl -L "https://github.com/docker/compose/releases/download/1.24.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose |
thanks @raksshet its worked |
I have a same bug with the 1.24.0 version on Raspbian. |
I also have the same problem with 1.24.1 on Raspian. |
Same issue on Rock64 ubuntu bionic.... |
Isn't Raspbian a 32 bit OS? The official docs state you can only run compose on 64 bit Linux. So when you try to curl with |
@Rampelflik are you sure you're trying to access a real release? Check the output of (If If that's working, check that the release you're trying to access actually exists here. As @raksshet stated above, your curl call should look like this (or similar): |
I figured out the problem , for me it was caused by the fact that was trying to download version 1.25.2-rc1 which is not available for some reason. SO i downgraded to 1.24.0 and it worked. |
@AndrewOdiit you forgot the "v" introduced in tag "v1.25.2" |
For those trying to install on Raspbian (ARM64) or another unsupported architecture, you can install docker-compose via pip. |
I am trying to install docker-compose on redhat 7 of ppc64le(Power9 server) arch type still getting same error. % Total % Received % Xferd Average Speed Time Time Time Current Thanks |
I am facing the same error Using Output of uname -s : Linux |
@ADI10HERO 32 bit architectures are not supported (you're using i686), you need to be running a 64 bit processor and OS (i.e.
See https://github.com/docker/compose/releases/1.26.2 for downloads available in the latest release (note there's no docker-compose-Linux-i686) |
you all folks are downloading a "Not Found" string returned by a 404 http status code. Your target file for target architecture doesn't exist. /usr/local/bin/docker-compose: line 1: Not: command not found the Not above is realated to what I've explained. did you guys tried to run nano /usr/local/bin/docker-compose ? |
Who trying to install docker compose on raspbian use this guide |
|
sudo rm /usr/local/bin/docker-compose then then This work for me |
|
I got a similar problem. It was because the version I tried to install was not actually there. So before downloading the docker-compose, make sure the release version exists from the link below: |
Type these commands in order $ sudo apt install docker-compose |
I ve got this error when trying to run docker-compose in travis. I solved the issue using :
|
@ADI10HERO answer is correct, but notice that there have been a change in the link on github, and now the version number should look like
|
love you, this works |
I found that
|
if you are using macOS than first enter this command |
To install or upgrade to the latest version every time for MAC (and will likely work for linux as well). sudo curl -L "https://github.com/docker/compose/releases/download/$(curl -s https://api.github.com/repos/docker/compose/releases/latest | grep '\"tag_name\":' | sed -E 's/.*\"([^\"]+)\".*/\1/')/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose This will fetch the latest version number and use that to download the latest and install it. |
Introduced from version 1.25.2:
|
docker/compose#6268 (comment) "v" introduced in tag "v1.25.2"
@raksshet - man, thank you so much, you literally saved my day!) |
@raksshet Man, fr Thank You So Much!.....Been trying to solve that problem since 2 days😭💪 |
Saved my life, thanks bro! |
this is working, thank you. |
Issue solve on mac m1 after running You should have docker installed |
That helped me |
Thank you so much! this worked for me <3 |
you should follow this link in order to solve your issue: sudo curl -L "https://github.com/docker/compose/releases/download/v2.11.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose you forget the |
Its silly, but yeah... I also forgot the 'v' in front of the version number Old tutorials (< v2) don't use the 'v' in the URL, so easy to overlook. Thanks |
|
Hi, only for said that this task works... I don't know build unknown mean. |
I had the same issue when I try to setup on the Oracle-Linux-8.6-aarch64-2022.12.15-0 image. You can get more information here https://github.com/linuxserver/docker-docker-compose
|
DonRichard's solution as seen above here and further above on the page is the best solution here. Have only added the line for docker-compose to be executable. You get an uptodate version of docker-compose, and it also solves the issue: Using linux but like he said its most likely to work on a Mac. |
this is working on my raspberry with command: |
thanks, worked for me |
|
Thank you for this. Been trying to resolve it for >4hrs |
Work for me, thnx. |
Execute the command
[root@localhost ~]# curl -L https://github.com/docker/compose/releases/download/1.23.0-rc2/docker-compose-`uname -s
-
uname -m` -o /usr/local/bin/docker-compose% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 9 0 9 0 0 21 0 --:--:-- --:--:-- --:--:-- 61
Context information (for bug reports)
[root@localhost ~]# ll /usr/local/bin/
total 20964
-rwxr-xr-x 1 root root 9 Oct 12 00:16 docker-compose
-rwxr-xr-x 1 root root 4839 Aug 3 14:10 erb
-rwxr-xr-x 1 root root 548 Aug 3 14:10 gem
-rwxr-xr-x 1 root root 192 Aug 3 14:10 irb
-rwxr-xr-x 1 root root 589 Aug 3 14:10 rake
-rwxr-xr-x 1 root root 940 Aug 3 14:10 rdoc
-rwxr-xr-x 1 root root 190 Aug 3 14:10 ri
-rwxr-xr-x 1 root root 21432601 Aug 3 14:04 ruby
[root@localhost ~]# /usr/local/bin/docker-compose --version
/usr/local/bin/docker-compose: line 1: Not: command not found
[root@localhost ~]# docker --version
docker - version 1.5
Copyright 2003, Ben Jansens ben@orodu.net
Usage: docker [OPTIONS]
Options:
-help Show this help.
-display DISLPAY The X display to connect to.
-border The width of the border to put around the
system tray icons. Defaults to 1.
-vertical Line up the icons vertically. Defaults to
horizontally.
-wmaker WindowMaker mode. This makes docker a
fixed size (64x64) to appear nicely in
in WindowMaker.
Note: In this mode, you have a fixed
number of icons that docker can hold.
-iconsize SIZE The size (width and height) to display
icons as in the system tray. Defaults to
[root@localhost ~]# docker-compose config
/usr/local/bin/docker-compose: line 1: Not: command not found
The text was updated successfully, but these errors were encountered: