Using latest image fabric8/maven-builder: vd8fbad4 on Kubernetes cluster v1.7.15.
Installed version of Docker is too old and can't speak to recent Docker hosts.
For example, I can't managed to pull an image from GCR with credentials generated with Jenkins Docker pipeline.
$ docker run --rm -it -v ~/.docker-gcr/:/root/.docker/ -v /var/run/docker.sock:/var/run/docker.sock fabric8/maven-builder:vd8fbad4 docker pull eu.gcr.io/my-project/my-image
Error response from daemon: unauthorized: You don't have the needed permissions to perform this operation, and you may have invalid credentials. To authenticate your request, follow the steps in: https://cloud.google.com/container-registry/docs/advanced-authentication
But it works with Docker CE installed on CentOS base image :
docker run --rm -it -v ~/.docker-gcr/:/root/.docker/ -v /var/run/docker.sock:/var/run/docker.sock seboudry/maven-builder:docker-ce docker pull eu.gcr.io/my-project/my-image
[...]
Status: Image is up to date for eu.gcr.io/my-project/my-image
Using latest image
fabric8/maven-builder: vd8fbad4on Kubernetes cluster v1.7.15.Installed version of Docker is too old and can't speak to recent Docker hosts.
For example, I can't managed to pull an image from GCR with credentials generated with Jenkins Docker pipeline.
But it works with Docker CE installed on CentOS base image :