# How to install Docker and Docker Compose on Arch Linux

> Source: <https://gist.github.com/kashifulhaque/3d56028729c29f9d6a353a6615d1beb9>
> Published: 2023-12-02 15:22:27+00:00

If you do not have yay
installed, then follow these steps to install it first
yay
yay -S docker docker-compose
sudo systemctl start docker.service
If the above command throws an error, then do the following
sudo systemctl enable docker.service
reboot
sudo groupadd docker
sudo usermod -aG docker $USER
newgrp docker
