2- Download Docker's dependencies:
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common -y
3- Add Docker's GPG key:
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
4- Install Docker's repository:
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
5- Update Ubuntu's repositories:
6- Install Docker:
sudo apt-get install docker-ce -y
7- Add your user to the docker group:
sudo usermod -aG docker $USER
8- Log out and log back in so that the changes made take effect: