我在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的官方图片。我不想使用具有更正权限的自定义图像层。
有什么想法吗?
由于
答案 0 :(得分:0)
Azure存储帐户-文件基本上是samba协议,具有root:root 777
权限挂载SA。如果需要其他权限,则必须使用Blob存储。