First of all: Yes you could use apt-get install docker-compose but you have not the newest version of docker-compose.
One-Command Solution for Ubuntu aarch64:
mkdir compose && cd $_ && wget https://github.com/docker/compose/archive/1.26.0-rc4.tar.gz && sudo apt update && sudo apt-get install -y build-essential python3-pip libffi-dev libssl-dev && tar xf 1.26.0-rc4.tar.gz && cd compose-* && sudo python3 setup.py install
Delete at least the compose folder and be happy. (:
Full-Tutorial with Explanations:
If you want the newest docker-compose version for Ubuntu aarch64 on a Raspberry Pi, follow these instructions:
1.) Download the newest docker-compose file from here: (Source-Tarball)
https://github.com/docker/compose/releases
2.) untar the docker-compose source tarball file with
tar xf [filename]
Go directly into the new directory.
3.) Install the dependencies via apt for python on Ubuntu aarch64:
sudo apt update && apt install build-essential python3-pip libffi-dev libssl-dev
Now we have the packages we need to run docker-compose. docker-compose is a python-script so we dont need to compile it, but we have to solve the dependencies in python.
4.) Start the python setup.py file for installing docker-compose
sudo python3 setup.py install
5.) Done hurray! You can now use docker-compose under Ubuntu aarch64 with docker.
Test it:
docker-compose --version
Thanks. But, there is still no aarch64 release there to download. Sigh
Yes, you have to download the Source-Tarball.