Cannot create volumes using Compose File? (Azure Container Instance) "plugin 'azure_file' missing"

Samuli Lahdenperä 11 Reputation points

Some wierd happened.
I have docker.compose.yaml -file with

driver: azure_file
driver_opts: ...`

There are config.ini and SQLite database in that mounted external azure filestorage. Everything worked well and configs was readable and SQLite too. Then I moved all (Container registry, Container Instance, Storageaccount fileshare) to another Resource Group. After that when I compose my build from VS Code (docker compose up) if fails:
Error response from daemon: create XXX: error looking up volume plugin azure_file: plugin "azure_file" not found.
Where do I can found that plugin?? I already updated azure cli to 2.37.0

Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
1,152 questions
Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,649 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Samuli Lahdenperä 11 Reputation points

    The docker-compose file was excactly same. But after hours of debugging find that the docker contexct was wrong type.
    Command "docker context ls" lists all contexts and types, descriptions etc. The context was typeof "moby" and it should be typeof "aci".

    I don't know how to change that or what that means. But I recreated it and now it is typeof "aci" and it resolves the "missing azure_file" problem.

    Another thing to note when listing all contexts is the "DESCRIPTION" column. It marks "resourcegroup@location".

    1 person found this answer helpful.
    0 comments No comments