Volume myvol specifies nonexistent driver azurefile

Viewed 945

Net core application and I am trying to mount azure file share. Below is my docker-compose file.

version: "3.9"
services:
  mountvolume:    
    container_name: mountvolume
    build:      
      context: .
      dockerfile: ./Dockerfile   
    ports:
      - "8080:80"
    volumes:
       - myvol:/Files/
volumes:
  myvol:
    driver: azurefile
    driver_opts:
      accountname: mystorageaccount28628
      accountkey: 2em0XONHCmgEE9m81Q/O0rTSGXf9giw==
      share: "acishare"
      remotepath: "aci/logs"

I have manually created FileShare named acishare in one of the storage account. I have given account name and key of the same storage account as above. I tried to docker-compose up and got below error

ERROR: Volume myvol specifies nonexistent driver azure file

Can someone help me to fix this error. Also in the above volume section I have fields share and remotepath so share means fileshare name but what is exactly remote path means? Can someone help me to figure it out. Any help would be appreciated. Thanks

1 Answers

I currently have the same issue and after doing some research, it seems like the azure files driver plugin for docker has been removed. It is still mentioned in the docker documentation (https://docs.docker.com/cloud/aci-integration/), though, but with the driver spelled azure_file. The Github project for the azure files plugin has been abandoned https://github.com/Azure/azurefile-dockervolumedriver.

As far as I understand the MS Azure documentation, integration is now only possible if you also deploy your container in azure (https://docs.microsoft.com/en-us/azure/container-instances/container-instances-volume-azure-files).

Related