The step that triggers from Jenkins server is simple. Just call the script:

stage (‘Build-Docker-Image’) {
steps {
sh ‘/path/to/build-docker_image.sh’
}
}
I made sure Jenkins user has “admin” permission and member of “staff” group. I printed out them in the shell script too as below:

Did you find any solution this issue, I am also facing same issue.
I have Jenkins & dockers installed on my mac.
When I login as Jenkins user I am getting permission denied error.
I tried all work arounds found by googling but none helped. I have created docker group, added jenkins user to this group. I even added jenkins to staff, admin groups but still same error.