From version 1 you need to run the command below… There is no need to specify the n8n command anymore and the volume path has changed from /root/.n8n to /home/node/.n8n
Also this should be updated in documentation because there is old info about tunnel.
But i found that there is also error running by docker:
sudo docker run -u root --name n8n -p 5678:5678 -v ~/.n8n:/home/node/.n8n n8nio/n8n
Trying :next and :lastest and the same problem
TypeError: First argument must be a valid error code number
at Sender.close (/usr/local/lib/node_modules/n8n/node_modules/ws/lib/sender.js:162:13)
at WebSocket.close (/usr/local/lib/node_modules/n8n/node_modules/ws/lib/websocket.js:301:18)
at pushValidationMiddleware (/usr/local/lib/node_modules/n8n/dist/push/index.js:91:20)