在Windows中fabric8io docker-maven-plugin

我正在尝试使用maven,docker和Cassandra进行一些集成testing。

现在,我写了一个虚拟代码来查询Cassandra并试图运行Cassandra容器。

这是关于插件的pom.xml:

<plugin> <groupId>io.fabric8</groupId> <artifactId>docker-maven-plugin</artifactId> <version>0.14.1</version> <configuration> <images> <image> <alias>some-cassandra</alias> <name>cassandra:3.0</name> <run> <ports> <!--<port>cassandra.port:9042</port>--> <port>9042:9042</port> <port>9160:9160</port> <port>7199:7199</port> <port>7001:7001</port> </ports> <wait> <log>database system is ready to accept connections</log> <time>30000</time> </wait> </run> </image> </images> </configuration> <executions> <execution> <id>start</id> <phase>pre-integration-test</phase> <goals> <!-- "build" should be used to create the images with the artifact --> <goal>start</goal> </goals> </execution> <execution> <id>stop</id> <phase>post-integration-test</phase> <goals> <goal>stop</goal> </goals> </execution> </executions> </plugin> 

当我尝试运行它时,首先我得到一个关于DOCKER_NAME的错误不可用,我设置了一个名称不同的系统variables:“default”,“localhost”等等。 我不知道在哪里可以检查这个名字,我尝试了docker-machine inspect ,似乎这个名字是“default”

最后,当我设置DOCKER_NAME(有一个值,我不知道它是否正确,但我猜不是)。 我从Maven得到一个错误

 [INFO] --- docker-maven-plugin:0.14.1:start (start) @ integration --- **[ERROR] DOCKER> Connect to localhost:2375 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused: connect [ERROR] DOCKER> Error occurred during container startup, shutting down...** [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 5.595 s [INFO] Finished at: 2017-04-12T16:31:55+02:00 [INFO] Final Memory: 23M/312M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal io.fabric8:docker-maven-plugin:0.14.1:start (start) on project integration: I/O Error: Unable to check image [cassandra:3.0] -> [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/MojoExecutionException Process finished with exit code 1 

有人在Windows中使用这个插件吗?