I have several Linux containers in Azure AKS and I need to access some resource files (.NET 6) I want to use Azure File Share as a shared path to store these resources, that will change more or less every week. Is it a good approach?
I'm not able to make it works, I've already tried these two approaches:
testcontainer:
image: ${DOCKER_REGISTRY-}testcontainer
container_name: ...
build:
context: .
dockerfile: src/project/Dockerfile
volumes:
- myshare:/test
### First attempt ###
volumes:
myshare:
driver: local
driver_opts:
type: cifs
o: "mfsymlinks,vers=3.0,username=storageAccountName,password=***,addr=storageAccountName.file.core.windows.net"
device: "//storageAccountName.file.core.windows.net/shareName"
### Second attempt ###
volumes:
myshare:
driver: azure_file
driver_opts:
share_name: shareName
storage_account_name: storageAccountName
The first attempt gives me error: Error while mounting volume...:invalid argument
The second attempt gives me error: Error while mounting volume...:plugin "azure_file" not found"
How can i do that? Thanks to all.