Azure容器实例和Azure存储=权限问题

时间:2018-05-30 13:27:34

标签: azure azure-storage azure-virtual-machine azure-files azure-container-instances

我在ACI中使用Azure文件存储安装运行gitlab实例。

这是容器的输出:

storage_directory[/var/opt/gitlab/.ssh] (gitlab::gitlab-shell line 38) had an error: Mixlib::ShellOut::ShellCommandFailed: ruby_block[directory resource: /var/opt/gitlab/.ssh] (/opt/gitlab/embedded/cookbooks/cache/cookbooks/package/resources/storage_directory.rb line 33) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of chmod 00700 /var/opt/gitlab/.ssh ----
STDOUT: 
STDERR: chmod: changing permissions of '/var/opt/gitlab/.ssh': Operation not permitted
---- End output of chmod 00700 /var/opt/gitlab/.ssh ----
Ran chmod 00700 /var/opt/gitlab/.ssh returned 1

我是否还需要做些什么来纠正存储权限? 我看到有些文件是创建的,所以问题是明确的... 我正在使用docker hub的官方图片。我不想使用具有更正权限的自定义图像层。

有什么想法吗?

由于

编辑: 我的部署如下所示:https://docs.microsoft.com/en-us/azure/container-instances/container-instances-volume-azure-files#mount-multiple-volumes

1 个答案:

答案 0 :(得分:0)

Azure存储帐户-文件基本上是samba协议,具有root:root 777权限挂载SA。如果需要其他权限,则必须使用Blob存储。

相关问题