Hi everyone, please Help me,
I create a micro service with kotlin and compiled by maven, I also use fabric8 for build docker image automatically using maven, when I type mvn clean install
and process begin, but there is a trouble, I got this message
“Execution docker-build of goal io.fabric8:docker-maven-plugin:0.24.0:build failed: No given, no DOCKER_HOST environment variable, no read/writable ‘/var/run/docker.sock’ or ‘//./pipe/docker_engine’ and no external provider like Docker machine configured”
so i try to export environment DOCKER_HOST=tcp://127.0.0.1:2376 using command export DOCKER_HOST=tcp://127.0.0.1:2376
also using DOCKER_HOST=http://127.0.0.1:2376
, so the error message in above done, but connection is refused
.
this project made with mac and run well on mac, I clone this message to my server with centos 7 .