Run n8n locally with Docker
n8n ships an official Docker image that includes the editor UI, the worker, and SQLite for credentials. Mounting a local volume lets your workflows survive restarts. Use the encryption key flag the first time so credentials encrypt deterministically — losing it means re-entering every API key later.
Port 5678 is already in use.
Stop the conflicting process or change the host port: `-p 5679:5678` and open http://localhost:5679 instead.