Maybe some users may get Permission error like:

Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post


Then, you need to follow the below commands:

1. Add Jenkins User in Docker Group

sudo usermod -a -G docker jenkins


2. Restart Your Jenkins

systemctl restart jenkins