执行编译的时候提示错误信息:
[INFO]
[INFO] --- docker-maven-plugin:0.44.0:build (default) @ service ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 26.841 s
[INFO] Finished at: 2025-03-28T13:11:45Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal io.fabric8:docker-maven-plugin:0.44.0:build (default) on project service: Execution default of goal io.fabric8:docker-maven-plugin:0.44.0:build failed: No <dockerHost> 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 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
问题和解决
可能有下面的错误:Jenkins 构建的时候提示 DOCKER_HOST 错误
更主要的,是 Docker 引擎进程没有启动。
需要启动 Docker 进程。