How to Install Docker in ubuntu 22.04 Proper way

Get Complete setup for how to install docker on ubuntu 18.04, 19.04,20.04, 21.04, 22.04

Not taking your time just go to installation steps

 

Step 1 Remove older packages

sudo apt remove docker -y
sudo apt-get -y autoremove

Step 2 Get software properties and update

sudo apt update -y

Step 3 Finally, install the latest version of Docker on Ubuntu

sudo apt install docker.io -y

Step 4 Finally, check version of Docker on Ubuntu

sudo docker --version