Hi@akhtar,
You may get this error if you didn't allow your jenkins node to connect with Docker server. Open your docker configuration file and make changes as shown below.
$ vi /usr.lib.systemd/system/docker.service
Add your host server IP with port number and restart docker service.
$ systemctl daemon-reload
$ systemctl restart docker