Mount a volume while using a docker container in Azure App Service

I’ve deployed a Web App on Azure and use a Docker Container from the public registry (my own image) to host my website. But users can upload pictures and data is stored in json-files on the server. Of course I want to write these files to a mounted volume outside of the container. So that I can redeploy an update version of my website without losing data.

Is that possible with Web Apps? Or do I need to move on to an Ubuntu VM with Docker on Azure? What I like about the webapps is I don’t have to worry about managing the VM and only care about my container.

  • How to securely share private docker repo login credentials in Azure container service with Mesos & Marathon
  • Why am I unable to access my node.js app within a docker container?
  • No executable found matching command “dotnet-/../.dll” when running dotnet core docker image in Azure Web App on Linux
  • Modifying 201-vmss-ubuntu-autoscale Azure quickstart template to include Docker extension
  • Specify container deployment target with Kubernetes, e.g. Test/Production
  • Docker Swarm on Azure: Correct use of docker4x/logger-azure
  • How to access container (SkyDns) via exposed port at (docker0) from another container? Docker 1.7.1, Centos 7
  • Docker mysql official image
  • netcat for MySQL connection forwarding
  • How can I enable MySQL binary logging using the official Docker image?
  • Docker - few containers
  • Docker pull fails to lookup on (cannot unmarshal DNS message)
  • One Solution collect form web for “Mount a volume while using a docker container in Azure App Service”

    This blog post is a great start and understanding Azure’s strategy regarding volume mounting (ASL == App Services on
    Linux; ASW=App Services on Windows

    … However, in this case, we would like to leverage the regular App Service Filesystem, so we can interact with the application using FTP. When a container is deployed, ASL mounts the equivalent of D:\home path on ASW to /home (using volume mount in Docker). Now when that happens, it is up to your container to map the corresponding paths into the application. In order to understand how this works more closely, take a look at the official Dockerfile used in PHP7 container on ASL.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.