deislabs/cnab-azure-driver

Permission denied to create directory `/porter`

Opened this issue · 4 comments

When we try to run an install action with the CNAB driver and using a bundle published in a registry (porter install <installation name> --driver azure --reference <bundle registry ref> ...), we run into the following error:

Creating Azure Container Instance To Execute Bundle
Running Bundle Instance in Azure Container Instance
mkdir: cannot create directory '/porter': Permission denied

Porter version used: 1.0.14

Error happening possibly on line 1072 of aci-driver.go.

Building a Porter bundle by using a Dockerfile template with line RUN mkdir /porter && chown ${BUNDLE_UID} /porter will work, but this is a workaround very hard to sell.

Hi @tompaana we'll need a bit more here. So this is in the ACI service? @simongdavies any ideas?

if you can chown and get it to run, then it's a question of setting perms right, of course. I'm quite sure there's a solution here.

@squillace I updated the description. We are indeed using the ACI service and the error occurs in the newly spun up container instance. Perms issue definitely, but is it something we're doing wrong or a compatibility issue with the latest Porter version...

I believe that Simon's going to have a look at this. Running in userspace will affect this.