Forgot my password - Docker

Hey guys,
Could you give me some help to recover my password?
I’m using metabase locally using Docker and I’d like to know what is the best way to retrieve the password.

I’ve just searched for my answer here but didn’t find the on the same context as mine.

Hi @raphael
I’m guessing you’re using H2 as the application database.

Copy the database out with docker cp metabase:/metabase.db/metabase.db.mv.db ~/

Then the file is in your computers home directory, then follow:
https://www.metabase.com/docs/latest/faq/using-metabase/how-do-i-reset-my-password.html

When you have access to the system, then migrate away from H2:
https://www.metabase.com/docs/latest/operations-guide/migrating-from-h2.html

And then if you prefer, then you can setup Docker again and use that.

  1. Get the container name or id using command and copy it:
docker ps
  1. Go into the shell of the container
docker exec -it <container_name> sh
  1. List down the environment variables
env | grep MB_DB_PASS