Can't save Credentials in docker mode

Describe the problem/error/question

Can’t save Credentials in docker mode

What is the error message (if any)?

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version:1.97.1
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):docker
  • Operating system:linux

In Docker mode, n8n cannot save credentials unless a persistent database is configured. By default, Docker uses SQLite in-memory, which doesn’t persist data across restarts.

:white_check_mark: Fix:

  1. Set up a persistent database (Postgres or SQLite with a volume).

  2. Make sure the environment variable N8N_DATABASE_TYPE points to your database.

  3. Mount a persistent volume for the database so credentials and workflows are saved.

Once this is done, credentials can be saved and reused in Docker mode.

Hey, how do you start n8n in docker? If you use a command can you post it?

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