I faced the same issue, ran the command "sudo systemctl restart docker.socket", and the problem was resolved.
sudo systemctl restart docker.socket