如何更改主机系统上的文件 [英] how to make changes to files on the host system
本文介绍了如何更改主机系统上的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法对系统上的文件进行更改
is there a way to make changes to a file(s) on a system
,例如更改主机系统上的配置文件。
for example make a change the a config file on the host system.
推荐答案
You can, using the createOptions for the module. Example:
{
" HostConfig":{
" Binds":[
" / tmp / configdir:/ tmp / configdir"
]
}
}
确保用户在container可以访问已安装的目录。
这篇关于如何更改主机系统上的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文