Install new repository
sudo apt install apt-transport-https
wget -O- https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg | sudo apt-key add -
echo "deb [arch=amd64] https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") \
$(lsb_release -cs) \
stable" | sudo tee /etc/apt/sources.list.d/docker.list
Install Docker
sudo apt update && sudo apt install docker-ce
sudo systemctl reboot