This article will describe installing docker. Please see here for usage of Docker.
Table of Contents
1 Install docker
The following script will install docker.
- Add user to docker group for using docker command withou sudo.
#!/bin/sh sudo pacman -Sy --noconfirm docker sudo systemctl enable docker sudo systemctl start docker sudo gpasswd -a hiroom2 docker sudo reboot
2 Execution result
Run hello-world.
$ docker run hello-world <snip> Hello from Docker! <snip>