Write file to Disk Mac

Hey, I am new to n8n, and I have my n8n hosted on Docker.
I am using macOS
I am trying to write a file to a folder on my desktop.
I get the error shown in the screenshot
Please, how can I resolve this, or must I store it on the N8N Docker volume I created


?
if that is the only option, how do I go about doing that as well

Hey @thejediMunk hope all is good. Welcome.

Don’t forget that when you are using Docker, your n8n process is running in the container, not directly in your system, so your host system paths are not available.

If you want to write to a folder accessible on your Mac, what you need to do is mount a host folder to the container, then in n8n write to that folder. Since it’s a mount the files will appear in your host folder as well.

Hi Jabbson, I highly appreciate your response.
I have been able to do something with respect to mounting the volume with Docker, but my issues persist.
I think I have been able to mount the folder, but I still cannot find the right path to write files to the folder.

I would specifically want to know these

  • How to check if my folder is correctly mounted?
  • How to find the path that I need to file into the write module?
  • and if need be, how to grant the folder a rw access

thank you for your assistance

The folder can be mounted with a named volume or bind mount. What you probably want is the latter.

To mount the bind mount, you need to specify the folder as one of the volumes in your docker compose definition if you are using one. If not, and you are using docker run command, you would specify two paths (host path and container path) with the -v flag, finally if you are running a docker desktop, you would choose the folder to mount and the destination here:

If you show us how you attempted to mount your folder, we can try to hypothesize further.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.