Linux

How to reset the admin password for n8n running in a Docker container

To reset the admin password for n8n running in a Docker container, you can utilize the n8n user-management:reset command. This command will reset the user database to its default state, prompting you to create a new admin account upon accessing the n8n web interface.
Important Note: This action will delete all existing user accounts within n8n. If you have multiple users, consider backing up your workflows and credentials before proceeding.

Here are the steps to reset the n8n admin password on Docker: Access the Docker container's shell.

docker exec -it <n8n_container_name_or_id> /bin/sh

Execute the reset command within the container:

n8n user-management:reset 

 Exit the container's shell.

exit

Restart the n8n container.

docker restart <n8n_container_name_or_id>

 After restarting the container, navigate to your n8n instance in your web browser. You will be prompted to create a new admin account, effectively resetting the password. 

Thanks for visit my website