Some online installation procedures are too complicated and prone to error during installation, other installation is not difficult, just a command.
After a successful installation, use the command to view the status of docker
systemctl status docker
Update the package before installation source
sudo apt update sudo apt install docker.io