Home > other >  Docker mysql, docker after the restart, reset the container configuration file?
Docker mysql, docker after the restart, reset the container configuration file?

Time:11-09

Docker mysql, docker after the restart, reset the container configuration file?

Start the container, the exec in to modify my. Conf configuration, after the docker restart restart container, found before modifying my after go in. The conf gone,
What's the matter?

CodePudding user response:

Every time a change in the container if you don't save manually (commit), after back to the original layer

CodePudding user response:

reference 1st floor mouse_zhu response:
containers every change if you don't save manually (commit), after back to the original layer

Thank you learned

CodePudding user response:

reference 1st floor mouse_zhu response:
containers every change if you don't save manually (commit), after back to the original layer

How to manually commit, I see only the vi can use

CodePudding user response:

You modify the current mirror, new open a terminal, docker ps view mirror id
Then docker mirror commit id image name: the latest
  • Related