docker volume指定单个文件时,宿主机修改文件内容后,进container里文件内容没变
ringa_lee
ringa_lee 2017-04-24 09:13:38
0
1
517

这是docker故意设计的吗?为什么
我认为应该像共享文件夹那样宿主机那边修改了以后container里的内容也应该跟着变啊?
我考虑错了么?
如果container里不变是对的的话?设计意图是什么?

ringa_lee
ringa_lee

ringa_lee

reply all(1)
洪涛

It is recommended to use docker volume to map the host's folder. File changes in the host will be reflected in the container, but the service in the container will not stop.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!