Mongo on Azure Container App crash when mounted a volume to /data/db

Lyes Benchoubane 36 Reputation points
2024-01-08T12:20:34.9366667+00:00

Good morning,

I have been trying for several hours to mount my share files volume on my Mongo Container.

User's image

User's image

User's image

I have provided you with 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 !

Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
1,214 questions
Azure Container Instances
Azure Container Instances
An Azure service that provides customers with a serverless container experience.
670 questions
Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
1,965 questions
{count} vote