我正在遵循此article来将示例Spring Boot应用程序部署到openshift。一切正常,但是当我运行以下命令时:
MVN清洁面料8:部署-P openshift
这给了我以下错误:
> [ERROR] Failed to execute goal
> io.fabric8:fabric8-maven-plugin:3.5.37:build (fmp) on project
> sample-service: Execution fmp of goal
> io.fabric8:fabric8-maven-plugin:3.5.37: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.
我有配置fabric8插件,我的pom.xml如下:
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>fabric8-maven-plugin</artifactId>
<version>3.5.37</version>
<executions>
<execution>
<id>fmp</id>
<goals>
<goal>resource</goal>
<goal>build</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
谁能帮我我在这里想念的东西。任何帮助将不胜感激。