How to retrieve password in local host n8n

Hi! I’m using the localhost.5768 n8n with Docker. I don’t know what happened but I can’t login to the n8n account I was using. Forgot My Password is not working in local host

Welcome to the community @Charmagne_Ancaja

You can reset your password for your local n8n Docker instance using a built-in CLI command.

I think you cannot retrieve the password, but you can create a new admin account; your existing workflows will remain.
In your terminal, run these commands:
docker exec -it n8n n8n user-management:reset
docker restart n8n

After that, open n8n and create your new account.