- Install
docker
:
yes | sudo pacman -Syu docker
- Install
docker-compose
(optional):
yes | sudo pacman -S docker-compose
- Start the
docker
daemon:
sudo service docker start # for SysVinit
sudo systemctl start docker # for Systemd
- To run
docker
as 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 docker
3. 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)