Some Docker images like postgres and gitlab/gitlab-ce require the ability to set permissions and ownerships on files and directories, however this does not appear to be supported on Azure Container Instances (see here, here, here) due to the file shares being mounted as CIFS (SMB) and the underlying file system appearing to be NTFS.
Is there any way to mount an Azure file share or blob storage to my container with POSIX permissions and ownership support?
We use Terraform to deploy our infrastructure to Azure, so examples in HCL would be greatly appreciated.
I am not looking for alternatives such as Azure VMs, Azure PostgreSQL Server or Marketplace offerings.
If you have not yet solved this you can use NFS to access data in storage account
Azure Files allows access through NFS and offers POSIX compliance
https://docs.microsoft.com/en-us/azure/storage/files/files-nfs-protocol
You can also have a look at other NFS access solutions in Azure
https://docs.microsoft.com/en-us/azure/storage/common/nfs-comparison
Then you can see here for instructions to mount this in Azure Container Instance