-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Please support ARM64 binary downloads #7472
Comments
Also before someone says "it says the command isn't found, you need to download and install the binary" that error is from RUNNING the file. This is the output if the file doesn't exist:
|
This is not a bug in docker-compose Check your
If not, add it to /root/.bashrc or something Also I've always had to use |
I KNEW someone would say that, which is why I made the above comment. It is finding the downloaded file, the error is with running it, not with not finding it. Please read what I previously said. |
Hahaha! My bad Yeah I misread that Right, it says What OS and architecture are you on? On my machine it works on a fresh debian VM without docker. EDIT: |
Ah, that does seem to be the same issue. Let me try the steps in the answer to see if that fixes it. Thanks! |
The OS is Ubuntu Server 20.04 and architecture is ARM64. EDIT: Actually after running |
Yeah, unfortunately doesnt seem like they post binaries for arm. I have no idea how hard it would be to compile for source, but seems like they do support at least arm32, although someone had trouble doing so I did find this. Its kind of old though Also, may I suggest you change the title to "Please support ARM64 binary downloads" or something? |
Changed the name, thanks! I had no idea it wasn't supported since there wasn't a note for compatibility on the documentation. |
Same issue, I am trying to install it on my Raspberry Pi - *3 - Raspbian OS Edit 2: Managed to bypass it using https://github.com/AppTower/docker-compose Got it from the discussion here: #6831 (comment) |
Hey guys, same issue here. If you want to make sure it's the same issue just run @CorruptComputer Did you solve this issue ? |
I installed docker-compose on centos7-arm64,
If have some error,run it twice! |
Hi, yes we currently recommend the pip install method for Arm64. I will see if we can get arm64 binaries built as well. |
This would be great, as it takes long time to build with the pip install on some boards. We are currently maintaining a fork to get such binaries in https://github.com/dappnode/compose/releases/tag/1.25.5 |
@MaximeAubanel I did not, I ended up giving up on Docker and just installing the applications I was trying to run manually. Hopefully they support this someday, but for now its just not possible for me. Since one of the apps I use specifically says not to use the pip package for docker-compose, as it does not work. |
@CorruptComputer I made it works installing it with apt-get:
|
Note that The The pip technique isn't mentioned in https://docs.docker.com/compose/install/#install-compose-on-linux-systems and only way below the fold on that page, discussing "pre-release" versions. |
Sadly, there's no binary distribution for linux+arm yet: docker/compose#7472 This is an imperfect solution, but it gets us going for now.
Sadly, there's no binary distribution for linux+arm yet: docker/compose#7472 This is an imperfect solution, but it gets us going for now.
This can be done by pip. the pip version is a python script, with so many dependencies:
we can make this simple and clean. |
Sadly, there's no binary distribution for linux+arm yet: docker/compose#7472 This is an imperfect solution, but it gets us going for now.
I have tried the following commands to get sudo yum update -y
sudo amazon-linux-extras install docker -y
sudo service docker start
sudo usermod -a -G docker ec2-user
sudo yum install \
python3 python3-devel gcc gcc-c++ \
libffi-devel openssl-devel -y
sudo pip3 install --upgrade setuptools pip
sudo /usr/local/bin/pip install --user docker-compose
# Now use with
sudo su
docker-compose I'm not very good with permissions, so if someone can adjust these steps so they work without |
This is even more important now that |
docker-compose depends on the cryptography package, v3.4 of which introduces a build dependency on rust; let's avoid that for now. https://github.com/pyca/cryptography/blob/master/CHANGELOG.rst#34---2021-02-07 This should be unpinned ASAP; hopefully docker-compose will offer binary download for arm64 at some point: docker/compose#7472
docker-compose depends on the cryptography package, v3.4 of which introduces a build dependency on rust; let's avoid that for now. https://github.com/pyca/cryptography/blob/master/CHANGELOG.rst#34---2021-02-07 This should be unpinned ASAP; hopefully docker-compose will offer binary download for arm64 at some point: docker/compose#7472
For anyone who want to get Docker Compose 1.28.2 up and running on ARM(Tested it on Jetson Nano), this might be useful:
Enjoy! |
@ajeetraina thanks for this All seams ok in a vim3 with ubuntu 20.04 Only the sudo snap install rustup --classic line didnt work for me. |
This issue is meant to be solved by compose version 2 which is the Golang implementation available in https://github.com/docker/compose-cli for now. |
I'm glad that compose-cli is going to mature and have a new golang implementation... but it's not going to be a safe drop-in replacement for docker-compose some time right? So ... We'd love to have arm binaries here. Not hard I don't think. |
The problem of having About For now, we are maintaining a documentation page with the compatibility matrix. At least in the UX https://docs.docker.com/compose/cli-command-compatibility/ |
Unfortunately it will be a couple of years before ddev can easily start using |
we also provide a translation tool so that scripts/tools relying on docker-compose will be able to transparently use |
Thanks @ndeloof - could you say more about "translation tool", maybe a link? I understand that docker-compose is being retired, but I'm not understanding what you're saying. As noted above, I've had success with |
whether pip based installations work or not, I think it would be highly convenient to have an ARM(64) binary, non dependent on all the python packages. That's what this issue was all about! |
@rfay this is not public yet, but bundled in latest Docker Desktop - we will make this open-source soon @vdo Compose v2 is a Go project, so we can build static ARM binaries without any runtime dependencies |
Nice, I missed that part. I will give it a try. |
I was able run the last command without sudo: And it put docker-compose inside When I restarted my ssh, |
My set of commands to upgrade from version 1.17 to version 1.29.2 (latest at this time) are as follows. (modified from @ajeetraina's commands above)
|
@sshmaxime I can confirm this issue still exists and no warning on the docker-compose page whatsoever. arm64 users should be warned on this page https://docs.docker.com/compose/install/ Thank you tho, it helped me without pip3/pip which is a horrible package manager by far |
Description of the issue
Docker Compose fails to run with the following error:
Context information (for bug reports)
Output of
docker-compose version
Output of
docker version
Output of
docker-compose config
(Make sure to add the relevant
-f
and other flags)Steps to reproduce the issue
Observed result
The software crashes when trying to run it.
Expected result
The software would run successfully.
Stacktrace / full error message
Additional information
Running OS: Ubuntu Server 20.04 LTS
The text was updated successfully, but these errors were encountered: