Ошибка Показывает ошибку, что демон docker может не работать
[INFO] ------------------------------------------------------------------------
[CICD-Maven-Jenkins-Docker-Integration] $ docker build -t imdhruv28/cicd-docker-jenkins-integration --pull=true /var/lib/jenkins/workspace/CICD-Maven-Jenkins-Docker-Integration
time="2020-03-24T14:27:15+05:30" level=error msg="failed to dial gRPC: cannot connect to the Docker daemon. Is 'docker daemon' running on this host?: dial unix /var/run/docker.sock: connect: permission denied"
error during connect: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.40/build?buildargs=%7B%7D&cachefrom=%5B%5D&cgroupparent=&cpuperiod=0&cpuquota=0&cpusetcpus=&cpusetmems=&cpushares=0&dockerfile=Dockerfile&labels=%7B%7D&memory=0&memswap=0&networkmode=default&pull=1&rm=1&session=3maudqn4r7n8md6azfdxz34vb&shmsize=0&t=imdhruv28%2Fcicd-docker-jenkins-integration&target=&ulimits=null&version=1: context canceled
Build step 'Docker Build and Publish' marked build as failure
Finished: FAILURE
Dockerfile
FROM openjdk:8
EXPOSE 8081
ADD target/CICD-Docker-Jenkins-Integration.jar CICD-Docker-Jenkins-Integration.jar
ENTRYPOINT ["java", "-jar", "/CICD-Docker-Jenkins-Integration.jar"]
can any one will help me to solve this?