It seems that mounting a file share on a ACI behaves like mounting bind mounts rather than mounting Docker volumes.
From Docker:
If you mount an empty volume into a directory in the container in which files or directories exist, these files or directories are propagated (copied) into the volume. Similarly, if you start a container and specify a volume which does not already exist, an empty volume is created for you. This is a good way to pre-populate data that another container needs.
If you mount a bind mount or non-empty volume into a directory in the container in which some files or directories exist, these files or directories are obscured by the mount, just as if you saved files into /mnt on a Linux host and then mounted a USB drive into /mnt. The contents of /mnt would be obscured by the contents of the USB drive until the USB drive were unmounted. The obscured files are not removed or altered, but are not accessible while the bind mount or volume is mounted.
When you mount a File Share from a Storage Account into an ACI, it behaves like the second case. If this is correct, I'd be nice if it was clarified in the document. Otherwise, there might be something not working, as that is the behaviour I'm observing 😝
Thanks!
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
Adding @dkkapur who might be able to assist further.
@hjlarrea thanks for the patience while I looked into this.
The statement from docker is correct and we expect it to behave like #2. I am working to update the document now.
@MicahMcKittrick-MSFT - Micah, I'll add myself to follow up on doc updates as well. I'll work with Deep to publish the clarification. Thanks for getting the right info!
@MicahMcKittrick-MSFT - Do you know if there are intentions of adding the possibility of mounting shares or blobs as proper Docker volumes in ACI? Thanks again!
@hjlarrea I am not personally sure. @dlepow or @dkkapur might be able to tell you though.
@hjlarrea - The updated article referring to bind mounts has been published, and I'm closing this issue. Thanks for your suggestion!
For your question about plans to mount shares/volumes as Docker volumes, I'm not aware of plans currently. Please feel free to post your idea at Azure UserVoice for others in the community to vote on.