Linking Azure Container Service agent hosts (Orchestrated by Swarm) to Azure Storage


  • Hi

    I've setup an Azure Container Service running with Swarm, using the Azure Portal template. This cluster runs fine, and I'm able to deploy containers as one would expect.

    But it seems impossible to mount an Azure Storage, to be able to share/save state for my container.

    So far I have tested the gifs-util directly using this method:

    But as this requires each image to be dependent on the cifs-util, I would like to map this directly on my container host as explained here:

    My problem now, is that this doesn't work at all. When trying to create volume I get the error below:

    Jacobs-MacBook-Pro:.ssh jacob$ docker volume create --name myvolume --driver azurefile -o share=myshare
    Error response from daemon: create myvolume: create myvolume: Error looking up volume plugin azurefile: plugin not found

    Anyone else have this problem or someone can give me directions?

    Best regards,


    Saturday, August 20, 2016 5:05 PM

All replies

  • Hi,

    Just to confirm we would like to understand how your query is related to Azure Stack. Or are your referring to Azure Storage ?

    Azure is Microsoft's public cloud offering and Azure Stack is Microsoft's hybrid cloud solution, which as of now is in Technical Preview 1.

    If you can confirm that this query is not related to Azure Stack, we would move it to the appropriate Forum for better support.


    Sunday, August 21, 2016 4:34 AM
  • Hi My Query is related to Azure Container Service and Azure Storage, not Azure Stack. Please move to appropriate board Best regards, Jacob
    Sunday, August 21, 2016 4:57 AM
  • Hi Jacob,

    The below mentioned link may help you in this scenario.

    You may also see here Mount Azure Blob Storage as Local Drive

    For more information on Azure container . Click here

    For information on Docker volumes with Azure File Storage. Click here

    For greater over view on Docker in ACS. Click here

    In mean while you may refer to the above mentioned suggestions. Let me research more information on this issue and get back to you.

    Sumanth BM

    Sunday, August 21, 2016 7:32 AM
  • Thanks for the reply. What I understanding from the links, is that they all relate to containers where I Mount Azure Storage within or work directly on the container host. In terms of ACS I dont work directly with the agents and was hoping that volumes could be created through the swarm manager. Best regards Jacob
    Sunday, August 21, 2016 9:49 AM
  • I just wanted to give a brief update on this issue.

    I've made my setup work for now, but the method is quite cumbersome.

    What I've done:

    1. Created LoadBalancing rule on Azure Portal to forward SSH to random Docker Container Host (Can't be mapped directly)
    2. Connected number of times to hit the 3 agents.
    3. Configured Azurefile driver ( on each host
    4. Tested ability to create container from Swarm Master with Azurefile based volume.

    It would be awesome, if Azure Container Service natively supports the Azurefile driver.

    Best regards, 


    Monday, August 22, 2016 6:54 PM