【发布时间】:2021-10-17 14:45:28
【问题描述】:
我想在 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,但我不明白,如何做到这一点,就像重新启动容器一样,我每次都必须手动执行。
【问题讨论】:
标签: azure-storage azure-container-instances