docker commit无法保存改动
黄舟
黄舟 2017-04-21 10:56:19
0
2
773

使用dockerfile构建镜像,ssh登录修改tomcat文件配置,关闭container后使用docker commit保存修改,重启container后发现修改后的文件没有保存,这是为什么呢?

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(2)
Peter_Zhu

Open another terminal to commit.

大家讲道理

It may be that VOLUME is causing trouble...The shared directory specified in VOLUME cannot be saved, so the above situation occurs. After removing the relevant configuration in the Dockerfile, you can commit normally.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template