Is your jenkins user part of the docker group?
-- Adrien

Le ven. 29 déc. 2017 à 13:05, Muhammad Asif <[email protected]> a écrit :

> I have a jenkins pipeline which need to download and create docker image
> on the same machine where jenkins is installed. but I am facing the
> following error.
>
> + docker pull maven:3-alpine
> Warning: failed to get default registry endpoint from daemon (Got permission 
> denied while trying to connect to the Docker daemon socket at 
> unix:///var/run/docker.sock: Get 
> http://%2Fvar%2Frun%2Fdocker.sock/v1.32/info: dial unix /var/run/docker.sock: 
> connect: permission denied). Using system default: https://index.docker.io/v1/
> Got permission denied while trying to connect to the Docker daemon socket at 
> unix:///var/run/docker.sock: Post 
> http://%2Fvar%2Frun%2Fdocker.sock/v1.32/images/create?fromImage=maven&tag=3-alpine:
>  dial unix /var/run/docker.sock: connect: permission denied
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/34bde1d6-23d5-4def-ab59-cd8075d4691d%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/34bde1d6-23d5-4def-ab59-cd8075d4691d%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAKwJSvy%2B2NnyE8bao%3Dk5cEamRpzD%3DtDfB3V14Ss5EWOr5s%2BrXw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to