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
In ubuntu 16.04, I solved it with:
DOCKER_HOST=unix:///var/run/docker.sock mvn clean install