I am trying to directly build a docker image with maven with mvn package docker:build.
mvn package docker:build
Docker is running and docker ps shows me my containers,
docker ps
Below change fixed my issue on OSX El Capitan, Docker Version 1.12.1 (build: 12133):
export DOCKER_HOST=unix:///var/run/docker.sock
Please restart docker if mvn package docker:build still fails.