This article will describe installing Docker. Please see here for usage of Docker.
Table of Contents
1 Install Docker
Install Docker.
#!/bin/sh -e # Install Docker. sudo apt install -y docker.io docker-compose sudo systemctl enable docker sudo systemctl start docker # Add user to docker group which can use docker without sudo. sudo gpasswd -a "${USER}" docker sudo reboot
2 Execution result
Run hello-world.
$ docker run hello-world <snip> Hello from Docker! <snip>