Sometimes it happens. I also faced this issue. I just reloaded the daemon and restarted the docker service. It solved this issue. You can use the below commands.
$ sudo systemctl daemon-reload #THIS IS RESCUE COMMAND…
$ sudo systemctl restart docker
$ sudo systemctl status docker
$ docker pull hello-world
Using default tag: latest
latest: Pulling from library/hello-world
Ready to level up your Docker skills? Enroll now in our comprehensive Docker Course!