How to implement version management code on docker container

   Before deploying a docker on a virtual machine and run the centos7 three containers with developers to write code, write code that will certainly involve version control management.

Recommendation is to start writing code developed in the container, then docker commit a way to save it as image, each time rollback is then re-run a mirror image of the way through the new image,

Now developers feel this way too much trouble, every time you commit, run, some can even stop, delete operations.

Check online versions of some of the ways to achieve management code in the docker container, as follows:

1. The operating system code in the virtual machine, which is placed outside the docker container and mount in the container, so it can be used outside of the container, or directly git svn manner by way -v code version control

Guess you like

Origin www.cnblogs.com/lkun/p/10943093.html