I'm trying to use File Share to mount a volume in a docker container.
I'm trying to get the following variables, as mention in the official documentation:
https://docs.microsoft.com/en-us/azure/container-instances/container-instances-volume-azure-files
--azure-file-volume-account-name mldatafileshare \ --azure-file-volume-account-key XXXXXX \ --azure-file-volume-share-name datamlfileshare \
I'm the deploying the container with the following CLI code:
/home/luis/bin/az container create \
--resource-group mlcontainers2 \
--name automl3 \
--image mlcontainers2.azurecr.io/samples/modeldiagnostics \
--registry-login-server mlcontainers2.azurecr.io \
--registry-password EeFxSRT2ghUNzlD2ny=iuGwVHEqy4aFZ \
--registry-username mlcontainers2 \
--ports 80 5000 5100 \
--azure-file-volume-account-name mldatafileshare \
--azure-file-volume-account-key XXXXXX \
--azure-file-volume-share-name datamlfileshare \
--azure-file-volume-mount-path /app/data_automl \
--memory 3 \
--ip-address public
It's created sucessfully, with when I make a call to the API (the container is running a flask app) I get this error:
2019-09-18 19:39:20 wk-caas-42de550704fc4996be1b9660860edcd1-39ad43ac741df9f9f1c698 werkzeug[8] INFO 10.240.255.56 - - [18/Sep/2019 19:39:20] "POST /api/AutoML HTTP/1.1" 404 -
I have tried without mounting the volume and I get the exact same error, hence I think the issue is that the container is not accessing the File Share unit.
I'm taking the values for the unit "--azure-file-volume-account-name, --azure-file-volume-account-key and --azure-file-volume-share-name " from the following places:
azure-file-volume-account-name: mldatafileshare
azure-file-volume-share-name: XXXX I'm taking that one from the same page:
And last one, azure-file-volume-share-name: datamlfileshare:
Is the file I created inside the account, mldatafileshare.
EDIT:
Also, when I try to access the account on the browser I get this error: