docker installation on the ubuntu 18.04

1. 
sudo apt update
2.
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common
3.
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
4.
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
5.
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli
6.
sudo curl -L "https://github.com/docker/compose/releases/download/1.25.3/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
7.
sudo chmod +x /usr/local/bin/docker-compose
8.
docker-compose --version