我在run的时候挂载了个空文件试了下,挂载是成功了,但是修改了文件,在容器里面看,是没有文件内容的。是不是只能挂载目录,不能挂载文件?
人生最曼妙的风景,竟是内心的淡定与从容!
You can mount filesbut you cannot change the file inode (after the change, the inside and outside of the container will no longer be the same file)How did you modify the file
You can mount files
but you cannot change the file inode (after the change, the inside and outside of the container will no longer be the same file)
How did you modify the file