docker运行了应用,改如何修改程序源码?
天蓬老师
天蓬老师 2017-04-24 09:14:05
0
4
1578

想知道,docker运行了应用,改如何修改程序源码?
运行的应用都存在哪里,该怎么修改他,还是说只能重新再运行。

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(4)
小葫芦

The second floor is already complete, let’s talk about one more: docker exec -ti app bash
Then go in and make any changes you want and then exit

大家讲道理

Make data volume mapping, or directly enter the container
Containers are isolated

黄舟

1. The original intention of Docker is to make the container stateless, that is, use whatever is in the box. We will not make any external modifications. If I need to change the code, I will rebuild an image.

2. For the need to modify the source code, you can associate the changing directory through volume, that is, the directory mount in the container is associated with a directory on the external host.

伊谢尔伦

Data volume mapping is recommended during the deployment test phase to facilitate frequent modifications; mirroring is recommended during the production environment deployment phase to facilitate batch deployment.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template