How to Install Docker on Ubuntu 18.04
Installation
Begin by running Ubuntu updates
sudo apt update && sudo apt upgrade- Confirm the download with
Y - Wait until the update and upgrade processes have completed
Initially, we need to install the necessary packages
sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
Add the Docker GPG key
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
Now we need to install the Docker repository
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"Now we are able to install Dockersudo apt-get update && sudo apt-get install docker-ce docker-ce-cli containerd.ioDocker has been installed. Check if Docker is workingsudo docker run hello-worldIf you encounter the following message, it indicates that your Docker installation is functioning properly:Hello from Docker! This message shows that your installation appears to be working correctly.
