Hello,
I would like to update my Metabase with Docker on Windows and can’t figure out how to get my queries and dashboard back in this new version / new container while following the documentation.
I have done a backup of my previous “DB contents” : docker cp <id container>:/metabase.db /tmp/
(In C:/tmp)
After, I tried this command given in the documentation but can’t figure out how to set it properly in my case : docker run -d -v ~/my-metabase-db:/metabase.db --name metabase -e MB_DB_FILE=/metabase.db -e MUID=$UID -e MGID=$GID -p 3000:3000 metabase/metabase
By seeing the “~” I could guess that command isn’t meant for Windows.
I have done many attempt with this command and the best I could get is a container not starting (it exit(1) in a sec) with addgroup: invalid number '$GID' adduser: invalid number '$UID' su: unknown user metabase
.
I can’t really figure out what is this MUID
and MGID
and if I need to change something or not. Documentation isn’t really clear about that.
So after some try I had a “little succes” with this command: docker run -d -p 3000:3000 -v /tmp:/tmp -e "MB_DB_FILE=/tmp/metabase.db" --name metabase metabase/metabase:latest
Now I am able to recoverer my “old session” into my new Metabase 0.35.3 (I can connect on 0.35.3 to my DB without having to setup again, I just have to give my mail and password and I’m in)BUT, I have no query or Dashboard…
I dont understand how to get it done.
I have found a lot of subject around this but every time the answer is “read the documentation” or random command.
I hope I’m just a noob and I missed something because I find it very very hard to do something as simple as an update.
Thank you for your help
Emmanuel