Docker installation problem docker.service and unix socket

  docker, ubuntu, ubuntu-20.04

I installed docker before and it was working then I tried to reinstall but it doesnt seems like I can install it back. I purged everything by using

sudo apt-get purge -y docker-engine docker docker-ce docker-ce-cli
sudo apt-get autoremove -y --purge docker-engine docker docker-ce
sudo rm -rf /var/lib/docker /etc/docker
sudo rm /etc/apparmor.d/docker
sudo rm -rf /var/run/docker.sock
sudo groupdel docker
sudo apt-get remove docker docker-engine containerd runc
sudo apt-get purge docker-ce docker-ce-cli
sudo rm -rf /var/lib/docker
sudo rm -rf /lib/systemd/system/docker.service

Then installed back with

sudo apt-get update
sudo apt-get install     apt-transport-https     ca-certificates     curl     gnupg-agent     software-properties-common
curl -fsSL | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
sudo add-apt-repository    "deb [arch=amd64] 
   $(lsb_release -cs) 
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli

When installing it gives me

Do you want to continue? [Y/n] Y
Setting up docker-ce (5:19.03.13~3-0~ubuntu-focal) ...
Job for docker.service failed because the control process exited with error code.
See "systemctl status docker.service" and "journalctl -xe" for details.
invoke-rc.d: initscript docker, action "start" failed.
● docker.service - Docker Application Container Engine
     Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
     Active: activating (auto-restart) (Result: exit-code) since Tue 2020-10-20 14:01:05 EDT; 7ms ago
TriggeredBy: ● docker.socket
    Process: 103710 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE)
   Main PID: 103710 (code=exited, status=1/FAILURE)
dpkg: error processing package docker-ce (--configure):
 installed docker-ce package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)

This error. I dont know what to do I have searched all over the internet. I can provide any kind of information if necessary. I am using Ubuntu 20.04.

Also if I try to run

sudo docker run hello-world

After trying to install it gives me this error if it helps.

docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
See 'docker run --help'.

Any help is appreciated.

Thank you so much

Source: Docker Questions