使用dockerfile构建镜像,ssh登录修改tomcat文件配置,关闭container后使用docker commit保存修改,重启container后发现修改后的文件没有保存,这是为什么呢?
人生最曼妙的风景,竟是内心的淡定与从容!
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.
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.