- Install
docker:
yes | sudo pacman -Syu docker- Install
docker-compose(optional):
yes | sudo pacman -S docker-compose- Start the
dockerdaemon:
sudo service docker start # for SysVinit
sudo systemctl start docker # for Systemd- To run
dockeras a non-privileged user - withoutsudo(optional):
1. Add docker group:
sudo groupadd docker 2. Add current user to the docker group.
sudo gpasswd -a $USER docker3. Apply changes made to groups:
You can do either, however they're sorted from least to most likely to work:
newgrp docker- logout and login
- restart your machine (this is the safest bet)