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
![](https://www.edureka.co/community/?qa=blob&qa_blobid=4958874753984541420)
Add your host server IP with port number and restart docker service.
$ systemctl daemon-reload
$ systemctl restart docker