使用dockerfile构建镜像,ssh登录修改tomcat文件配置,关闭container后使用docker commit保存修改,重启container后发现修改后的文件没有保存,这是为什么呢?
大家讲道理2017-04-21 10:58:19
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.