Installing docker & docker compose on Amazon ARM Linux

October 29, 2022

If you're like me and have spun up a t4g.small during AWS's free trial period, you might want to run docker and docker compose. However, documentation on this is pretty sparse.

docker-compose vs docker compose

Apparently, docker compose is the new hotness and should be used going forward. I'm sure there are many changes under the hood but the headliner is that it's written in Go and docker-compose was written in Python (apparently).

docker

Based on this gist:

sudo yum install docker
sudo service docker start
sudo usermod -a -G docker ec2-user

Auto start:

systemctl enable docker.service

docker compose

This is the one you want, not docker-compose.

From here

sudo mkdir -p /usr/local/lib/docker/cli-plugins/
sudo curl -SL https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/lib/docker/cli-plugins/docker-compose
sudo chmod +x /usr/local/lib/docker/cli-plugins/docker-compose

Question & comments: feel free to send them to fullname [at] outlook.com.