How to install Docker on Archlinux? 🢃3

{{Docker}} and {{docker-compose}} are available as packages in the {{Archlinux}} repository.

To install you need to do the following:

update your system

Make sure your system is up to date with the following command

$ sudo pacman -Syu

install docker and docker-compose

$ sudo pacman -S docker docker-compose

start and enable the service

$ sudo systemctl start docker.service
$ sudo systemctl enable docker.service

optional: add user to docker group

If you want to run the containers without sudo you can add your user to the docker
group:

$ sudo usermod -aG docker $USER

The final step is to log out and log in to make sure that the permissions are correct for the user.