我正在使用 docker-maven-plugin 从远程存储库运行图像。
该图像正在使用 docker:start 运行,但似乎卷不起作用。
我使用 groovy (jenkins) 运行命令:
sh(script:"mvn -B -gs ${cfg} -f lib/pom.xml docker:start", returnStatus: true)
我的 pom.xml 代码是:
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>0.31.0</version>
<configuration>
<images>
<image>
<name>imageName:latest</name>
<run>
<volumes>
<bind>
<volume>/inputs:/inputs</volume>
<volume>/out:/out</volume>
<volume>/env:/env</volume>
</bind>
</volumes>
</run>
</image>
</images>
</configuration>
</plugin>
知道出了什么问题吗?