How to Install Docker on Ubuntu 20.04


Installing Docker

sudo apt-get update
apt-cache policy docker-ce
sudo apt-get install -y docker-ce
sudo systemctl status docker

Executing the Docker Command Without Sudo (Optional)

docker: Cannot connect to the Docker daemon. Is the docker daemon running on this host?.
See 'docker run --help'.
sudo usermod -aG docker ${USER}
su ${USER}
id -nG
username sudo docker
sudo usermod -aG docker username

Here are some interesting tutorials for you to get started:

Like to learn?

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store