我想在Azure容器实例上部署NextCloud。我能够使用Azure CLI设置容器组,如下所示:
az container create
--resource-group NextCloud
--name nextcloudcontainer
--image nextcloud
--dns-name-label somelabel
--ports 80 443
--azure-file-volume-account-name myaccountname
--azure-file-volume-account-key myaccountkey
--azure-file-volume-share-name nextcloudfs
--azure-file-volume-mount-path /var/lib/nextcloud/
--os-type Linux
--cpu 1
--memory 2
--location germanywestcentral
--restart-policy OnFailure问题是,驱动器/var/lib/nextcloud/是使用权限777挂载的,但对于nextcloud,我需要770。这不能在以后使用chmod进行更改,但只能在部署时更改。如何做到这一点呢?
我看到了这个post,但我不明白这是怎么做到的,就像重启容器一样,每次我都必须手动完成。
发布于 2021-08-24 15:02:04
有一种方法可以在挂载时使用mount param filemode和dirmode更改Azure文件中的权限。然而,在ACI中,我们在ACI中没有更改参数灵活性。我们知道这个请求,并正在处理它。
https://stackoverflow.com/questions/68787749
复制相似问题