ArchLinux 2017.10.01: Install docker for container

This article will describe installing docker. Please see here for usage of Docker.

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>