I'm running Docker from minikube (and also tried a remote docker machine).

The docker daemon endpoint and cert are configured via env vars:

DOCKER_BUILDKIT=1
DOCKER_CERT_PATH=/Users/rayt/.minikube/certs
DOCKER_HOST=tcp://192.168.64.2:2376
DOCKER_TLS_VERIFY=1

When I run ./mvnw spring-boot:build-image, the container build failed:

...
[INFO] --- spring-boot-maven-plugin:2.3.0.M3:build-image (default-cli) @ demo ---
[INFO] Building image 'docker.io/library/jib-demo:latest'
[INFO]
[INFO] I/O exception (java.io.IOException) caught when processing request to {}->docker://localhost:2376: com.sun.jna.LastErrorException: [61] Connection refused
[INFO] Retrying request to {}->docker://localhost:2376
[INFO] I/O exception (java.io.IOException) caught when processing request to {}->docker://localhost:2376: com.sun.jna.LastErrorException: [61] Connection refused
[INFO] Retrying request to {}->docker://localhost:2376
[INFO] I/O exception (java.io.IOException) caught when processing request to {}->docker://localhost:2376: com.sun.jna.LastErrorException: [61] Connection refused
[INFO] Retrying request to {}->docker://localhost:2376
[INFO]  > Pulling builder image 'docker.io/cloudfoundry/cnb:0.0.53-bionic' 100%
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  11.013 s
[INFO] Finished at: 2020-03-16T22:53:23-04:00

The plugin assumes the docker daemon is running on localhost:2376, when it the env var DOCKER_HOST is pointing else where tcp://192.168.64.2:2376