我想通过Maven运行stilliard/pure-ftpd
。因此,当我运行mvn clean install
时,docker映像将旋转,并且我的IT测试可以与docker映像进行通信。
这是我的pom.xml.file的样子
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<executions>
<execution>
<id>prepare-it</id>
<phase>pre-integration-test</phase>
<goals>
<goal>start</goal>
</goals>
<configuration>
<images>
<image>
<alias>rabbitmq</alias>
<name>rabbitmq:3-management-alpine</name>
<run>
<ports>
<port>${rabbitmq.port}:5672</port>
<port>${rabbitmq-management.port}:15672</port>
</ports>
<wait>
<http>
<url>http://${rabbitmq.host}:${rabbitmq-management.port}</url>
<method>GET</method>
<status>200..399</status>
</http>
<time>30000</time>
</wait>
</run>
</image>
<image>
<alias>sftp</alias>
<name>stilliard/pure-ftpd</name>
<run>
<cmd>${sftp.username}:${sftp.password}:::${sftp.directory}</cmd>
<ports>
<port>${sftp.port}:21</port>
</ports>
<wait>
<time>10000</time>
</wait>
</run>
</image>
</images>
</configuration>
</execution>
<execution>
<id>remove-it</id>
<phase>post-integration-test</phase>
<goals>
<goal>stop</goal>
</goals>
</execution>
</executions>
</plugin>
除了ftp服务器以外,一切都开始。运行mvn clean install
]时收到此消息
[INFO] DOCKER> [stilliard/pure-ftpd] "sftp": Start container c40ccb9d35e7 [ERROR] DOCKER> Error occurred during container startup, shutting down... [INFO] DOCKER> [rabbitmq:3-management-alpine] "rabbitmq": Stop and removed container afbc982dc61b after 0 ms [ERROR] DOCKER> I/O Error
我缺少什么,所以我可以开始
stilliard/pure-ftpd
。>
我想通过maven运行stilliard / pure-ftpd。因此,当我运行mvn clean install时,docker映像将启动,并且我的IT测试可以与docker映像进行通信。这就是我的pom.xml.file ...
我不确定您对什么表示
<cmd>${sftp.username}:${sftp.password}:::${sftp.directory}</cmd>