make sure docker is installed
sudo pacman -S docker
Then start and enable the service
sudo systemctl start docker
sudo systemctl enable docker
sudo groupadd docker
sudo usermod -aG docker $USER
newgrp docker
// or restart the sessiondocker run hello-world