Skip to content

Instantly share code, notes, and snippets.

@kashifulhaque
Last active January 28, 2024 13:45
Show Gist options
  • Save kashifulhaque/3d56028729c29f9d6a353a6615d1beb9 to your computer and use it in GitHub Desktop.
Save kashifulhaque/3d56028729c29f9d6a353a6615d1beb9 to your computer and use it in GitHub Desktop.
How to install Docker and Docker Compose on Arch Linux

If you do not have yay installed, then follow these steps to install it first

Update

yay

Install

yay -S docker docker-compose

Start the service

sudo systemctl start docker.service

If the above command throws an error, then do the following

sudo systemctl enable docker.service
reboot

Liunx post-install step (to run docker without root or sudo one might say)

sudo groupadd docker
sudo usermod -aG docker $USER
newgrp docker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment