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

Samuli Lahdenperä 11 Reputation points
2022-06-21T11:43:54.46+00:00

Hi.
Some wierd happened.
I have docker.compose.yaml -file with
`volumes:
-db-data:/home/api

volumes:
db-data:
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,172 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,727 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Samuli Lahdenperä 11 Reputation points
    2022-06-23T04:54:05.783+00:00

    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