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/ ~/

Then the file is in your computers home directory, then follow:

When you have access to the system, then migrate away from H2:

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