I’ve been using n8n for the last few days with Docker to try and get the hang of how it works but the config file is generated each time I start n8n so I lose all my data. I’m starting it by following the instruction in the Quick Start section of the documentation.
docker run -it --rm \ --name n8n \ -p 5678:5678 \ -v ~/.n8n:/root/.n8n \ n8nio/n8n
The config file is apparently created at home > node > .n8n but when I try to access that path I’m told it doesn’t exist. Any restart of the computer means I lose my data. I manually created the directory yesterday, started n8n again and was able to restart my system and keep my data, even though the config file didn’t appear to be being saved there. Now this morning after turning on my computer and starting n8n the config file was created again and I’m starting from scratch again. I’m sure this is a simple issue but I can’t work out what I’m doing wrong.
So, I have a couple of questions:
- What am I doing wrong?
- Where is the config file and how do I access it?