Volume mount on container can't write folder in file share

Salim Kanoun 116 Reputation points
2021-08-19T15:43:13.007+00:00

Hi there,

I'm facing a strange issue, i have mounted a Azure File Share in a container of an Azure Container Instance.
The mounting is OK but the container is only able to write root files in the File Share, it fails to write folders and child files (can only write the files in the root mounting point).

We simply followed the tutorial to mount the file share in the container : https://learn.microsoft.com/en-us/azure/container-instances/container-instances-volume-azure-files

Did anyone faced this kind of issue and having some input ?

Best regards,

Salim

Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
1,228 questions
Azure Container Instances
Azure Container Instances
An Azure service that provides customers with a serverless container experience.
676 questions
{count} votes

Accepted answer
  1. Salim Kanoun 116 Reputation points
    2021-08-20T06:42:13.233+00:00

    Hi @deherman-MSFT

    My apologies it's an error from my part, I didn't noticed the folder mounting in Azure was a Bind and not a Volume mount.
    So we was binding an empty folder in Azure File into a non empty folder in the container which wiped it's content. Then we had a startup script that was writing in the root file of the mounting point so I thought there was a probleme with folder creation (but I was wrong, folder were just wiped by the binding and then root file normaly created).

    We still have an issue with a service which fail to initilize but I think it's not related to azure.

    My apologies for disturbing,

    Best regards,

    Salim

    0 comments No comments

0 additional answers

Sort by: Most helpful