No write permission inside Hailo AI docker

Hi everyone, I’m trying to use hailomz to compile but I’m getting an error about write permission.

The docker is started as per Hailo’s recommendation:

When trying to run hailomz compile command, it does not work because it can’t write files to it.

I was able to do the whole process a while ago, but I’m not sure what is different now that could be causing the problem.

Any ideas of how to fix it?

Maybe you can try “ll” command to check the user of your current directory.
You also can add a “sudo” in front of your command.
Or maybe you can “sudo chown -R hailo:ht .” , then run your command.

1 Like

Welcome to the Hailo Community!

I use a simple script file in the shared_with_docker/ directory. Create a new bash script with the following content.

#!/bin/bash

sudo chown $(id -u):$(id -g) * -R

To work inside the Docker container, call the script from within the container to ensure all files and directories can be modified. To copy or create new files from outside the container, run the script from outside the Docker container.

Great stuff guys, it’s working now. For reference:

I tried ‘ll’ and these are the permissions of my folder:

Trying the command with sudo didn’t work:
4

Finally, using “sudo chown -R hailo:ht .” worked!

klausk, I’ll create that script and run next time I need it to see if it’ll work.

Thanks guys, really appreciate it!