docker-compose中volumes的问题
大家讲道理
大家讲道理 2017-04-25 09:01:42
0
3
610

mysite.template是一个文件,但是映射到docker里就成了一个目录,请问是哪里写错了呢?

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(3)
Peter_Zhu

The official explanation of Volume is Data directory, the connection is as follows:

 https://docs.docker.com/engine/tutorials/dockervolumes/

If you are simply adding files, you can use add or copy

小葫芦
-v host_path/mysite.template:ps_path/mysite.template

The run syntax is written like this. Pay attention to the file name

黄舟

The same file can be put into ubuntu and it will work. I guess there is something wrong with the docker in windows

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!