Install docker-compose on Ubuntu 20.04 parallels Mac m1

Viewed 53

I have installed ubuntu 20.04 on parallels vm on MacBook m1. So, I have installed docker, but when I try to install docker-compose, I have this error:

/usr/local/bin/docker-compose: line 1: Not: command not found

I proceed like this:

apt-get install libjpeg-dev zlib1g-dev
sudo pip install -U setuptools
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose

I followed instructions in another stack overflow post, that said to install beta, but also this doesn't work.

Has anyone installed docker-compose on ubuntu arm64?

EDIT: I found the solution. I post it because if someone has the same problem, can fix it:

sudo curl -L --fail https://raw.githubusercontent.com/linuxserver/docker-docker-compose/master/run.sh -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose

It works on ARM64.

0 Answers
Related