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
On MacOs, I just set the environment variables as shown by
docker-machine env
When running the build from an IDE, make sure these variables are properly set.