Docker running the application, how to amend the source code?
Want to know, docker running the application, how to amend the source code?
Run the application where there is, how to modify him, or that can only re-run.
4 Solutions collect form web for “Docker running the application, how to amend the source code?”
The second floor has been very full, say one: docker exec -ti app bash
And then go free to change and then exit exit
Do the data volume mapping, or directly into the container between the containers are isolated
1.Docker's intention is that the container is stateless, that is, what is the use of the box, we do not modify the outside, if I need to change the code to re-build an image out.
2. For the need to modify the source code needs, you can change the directory through the volumn to do that is the container within the directory hanging linked to the external host in a directory.
Deployment of the test phase of the proposed data volume mapping, easy to frequently modify; production environment deployment phase proposed to do the mirror, to facilitate the deployment of bulk.