How to install Docker with Compose on Arch

Lets install docker package

yay -S docker

Start daemon

sudo systemctl start docker.service

Enable to preserve changes

sudo systemctl enable docker.service

Add yourself to docker group

sudo usermod -aG docker $USER

change current user group id to docker

newgrp docker

Although versions looks correctly

$ docker --version
Docker version 27.1.1, build 63125853e3
$ docker compose --version
Docker version 27.1.1, build 63125853e3

You will get error on

$ docker compose
docker: 'compose' is not a docker command

Fix it installing docker-compose

yay -S docker-compose

And confirm by

$ docker compose version
Docker Compose version 2.29.1

Add buildx plugin

yay -S docker-buildx