gpt4 book ai didi

unix - Azure 文件存储的 Docker 卷驱动程序的权限问题

转载 作者:行者123 更新时间:2023-12-02 18:32:25 25 4
gpt4 key购买 nike

我正在遵循此项目的自述文件 ( https://github.com/Azure/azurefile-dockervolumedriver/blob/master/contrib/init/upstart/README.md ),但是当我尝试在这样的容器上安装卷时

docker volume create -d azurefile -o share=myshare --name=myvol
docker run -i -t -v myvol:/data busybox
(inside the container)
# cd /data
# touch file.txt

我收到此错误:

Error response from daemon: VolumeDriver.Mount: mount failed: exit status 32
output="mount.cifs kernel mount options: ip=168.61.57.82,unc=\\\\cmstoragecd.file.core.windows.net\\myshare,vers=3.0,dir_mode=0777,file_mode=0777,user=cmstoragecd,pass=********\nmount
error(13): Permission denied\nRefer to the mount.cifs(8) manual page (e.g. man mount.cifs)\n"

它在 Azure 上的 Ubuntu 14.04 服务器上运行。我已经成功地在类似服务器上使用了该扩展,但它现在不起作用。我可以做什么来调试这个?

最佳答案

你的答案是正确的。目前许多 Linux 发行版中的 CIFS 不支持加密,而 Azure 文件存储在跨区域 SMB 流量中需要加密支持。

引用https://azure.microsoft.com/en-us/documentation/articles/storage-how-to-use-files-linux/处的注释

Note: The Linux SMB client doesn’t yet support encryption, so mounting a file share from Linux still requires that the client be in the same Azure region as the file share. However, encryption support for Linux is on the roadmap of Linux developers responsible for SMB functionality. Linux distributions that support encryption in the future will be able to mount an Azure File share from anywhere as well.

将来,请考虑通过在我们的 GitHub 存储库上打开新问题来直接与我们联系:https://github.com/Azure/azurefile-dockervolumedriver/issues .

关于unix - Azure 文件存储的 Docker 卷驱动程序的权限问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37139947/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com