1.Run following commands
sudo apt install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"
sudo apt update
sudo apt install docker-ce
- Check if it works:
sudo docker run hello-world
-- OR --
Run jus this:
curl https://gist.githubusercontent.com/robert-skarzycki/cf919ec788e92fac565d0d7b2ed79f46/raw/51f48895c6b870d4f0b03dfe2d7596c751133b09/install-docker-ubuntu.sh | sudo bash