maven - docker-maven-plugin 中的卷未绑定
问题描述
我正在使用 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>
知道出了什么问题吗?
解决方案
推荐阅读
- python - 如何用印地语将数据写入文件?
- python - 无法使用请求从网页中抓取名称
- javascript - Javascript:递归问题 --> 返回深度嵌套对象中最长的键值
- java - 为什么 Hibernate 创建了阻止我清空表内容的连接表
- scikit-learn - pycharm 的 Scikit-learn 外部文档网址?
- asp.net - React + React Router + ASP.NET MVC / IIS 仅在生产中显示空白页?
- puppeteer-sharp - WaitUntil 不等待/在 WaitForSelectorAsync 上获取 HTML
- python - 如何修复“TypeError:'NoneType' 类型的对象没有 len()”?
- arrays - 如果在 MIPS 中超过 .space 会发生什么?
- flutter - Flutter 让 TableRow 占用剩余的可用空间