Describe the issue/error/question
How to link the node code in VS code to the n8n instance in Docker?
What is the error message (if any)?
Please share the workflow
(Select the nodes and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow respectively)
Share the output returned by the last node
Information on your n8n setup
**n8n version:0.209.2
Database you’re using (default: SQLite):
**Running n8n with the execution process [own(default), main]:own
Running n8n via [Docker, npm, n8n.cloud, desktop app]:
Jon
January 28, 2023, 10:17am
#2
If you are using docker you could try mapping the volume that contains your node and setting the custom extensions option to that mapped volume.
Personally I prefer to create nodes outside of docker then add them to my container version from npm using the ui.
I can’t do either of the two methods you mentioned. Can you explain them?
Jon
January 28, 2023, 1:44pm
#4
Which bit are you having a hard time with? Can you share what you have tried?
I did a quick search and found this post I made a while back that talks about the custom extension option
Hey @rafuru ,
I have just given it a quick go and it appears to work how @marcus has suggested. On my Docker host I have created /home/docker/nodes/ and in there I ran…
git clone https://github.com/hckdotng/n8n-nodes-puppeteer-extended.git
cd n8n-nodes-puppeteer-extended/
npm i
npm run build
With the node now built I have then set up a volume in my container so that I can access /home/docker/nodes/ from /custom-nodes I have then set N8N_CUSTOM_EXTENSIONS=/custom-nodes/n8n-nodes-puppeteer-exte…
1 Like
What I want to say is, can I use Docker’s N8n instead of npm’s N8n instance at that time. Because all my customized nodes are on npm, now I want to use Docker. What can I do to start Docker’s n8n8?
Jon
January 30, 2023, 8:31am
#6
Hey @Tk8and15 ,
You can indeed, If it is for creating your node you can use the steps in the link I posted over the weekend.