简体   繁体   English

Docker - 安装没有子文件夹的 cifs 卷

[英]Docker - mount cifs volume without subfolder

Is it possible mount CIFS volume root folder?是否可以挂载 CIFS 卷根文件夹?

Something like this:像这样的东西:

my-storage:
        driver: local
        driver_opts:
            type: cifs
            device: '//IP-address'
            o: 'file_mode=0600,dir_mode=0755,username=admin,password=pass'

I only managed to mount a subfolder like //IP-address/some-dir我只设法安装了一个子文件夹,例如 //IP-address/some-dir

I don't think this will work this way, the listing of shares on a server is not the same as listing of objects in a share.我不认为这样会起作用,服务器上的共享列表与共享中的对象列表不同。 These are different protocols.这些是不同的协议。 Thus it must be handled another way by the client.因此,它必须由客户以另一种方式处理。 What you call root folder is not a folder but the listing of shares on the host, it could be a printer as well.您所说的根文件夹不是文件夹,而是主机上的共享列表,也可以是打印机。
Example Share Listing: https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-rap/48dd86d2-4092-49a4-9024-308f0ed77520示例共享列表: https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-rap/48dd86d2-4092-49a4-9024-308f0ed77520
Example Directory Listing: https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-smb2/10906442-294c-46d3-8515-c277efe1f752示例目录列表: https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-smb2/10906442-294c-46d3-8515-c277efe1f752
As you can see, the first is called MS-RAP, the second MS-SMB.如您所见,第一个称为 MS-RAP,第二个称为 MS-SMB。 An overview of how protocols interact, see here: https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-smb/592d0cbe-41d0-4b8e-8bb9-a60edd85e5e8协议如何交互的概述,请参见此处: https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-smb/592d0cbe-41d0-4b8e-8bb9-a60edd85e5e8

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM