Ubuntu Bionic 18.04 (LTS) fisntall docker code example
Example 1: how to install docker on ubuntu
sudo apt install docker.io
Example 2: apt install docker
$ sudo apt-get remove docker docker-engine docker.io containerd runc
sudo apt install docker.io
$ sudo apt-get remove docker docker-engine docker.io containerd runc