Good morning,
I have been trying for several hours to mount my share files volume on my Mongo Container.
Here my configuration screens even if logically the problem does not come from there because I can mount the volume on another path.
Tests performed:
- When I launch my container without volume it works
- When I launch my container with a mount volume on a path other than /data/db it works (/data/db2)
- When I launch a local container (Docker desktop) with a mount volume on /data/db it works
I don't know why but I have the impression that my Azure Share files overwrite everything in the path on which I mount it.
Do you have an idea ?
Thanks !



I believe your assumption is correct.
see: https://learn.microsoft.com/en-us/azure/container-instances/container-instances-volume-azure-files
You could mount it somewhere else and pass the directory to the mongo command via
--dbpath