承诺詹金斯码头图像不会保存更改
我从此处从
最后,我保存了詹金斯的更改。
我想创建一个新图像。我停止容器,并将其提交给新图像。
然后,我从新图像开始一个新容器...而詹金斯不包含我的任何更改。
我使用Docker版本1.6.2,构建7C8FCA2
I pull the official Jenkins docker image from here.
From Jenkins UI I create a new job , install the github plugin and set the repo urls in the job configuration.
Finally I save the changes from Jenkins.
I want to create a new image as it is. I stop the container, and commit it to a new image.
Then I start a new container from the new image...and Jenkins does not contain any of my changes.
I use Docker version 1.6.2, build 7c8fca2
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
dockerfile 将jenkins主目录声明为a 卷”>卷
这意味着对Jenkins配置的所有更改都是在Docker Image之外进行的。
更新
项目README描述了如何使用预装的插件创建自己的衍生docker映像。
https://github.com/jenkinsci/docker/docker/blob/blob/master/master/master/readme.md.md 例子
The Dockerfile declares the jenkins home directory as a volume
This means all changes to the Jenkins configuration is made outside of the docker image.
Update
The project README describes how to create your own derivative docker images with plugins pre-installed.
For example