I am new here and this is my first post. First off, metabase is awesome.
Ok, now to my issue.
I've always been launching metabase from the JAR file using
java -jar metabase.jar
and it send me to the "Sign in to Metabase" window when launching http://localhost:3000/
I am now trying to run Metabase on Docker by launching a container using the command;
docker run -d -p 3000:3000 --name metabase metabase/metabase
When launching with Docker, it does not "remember" me and does not ask for my metabase credentials. I basically have to signup all over again, which I obviously do not want.
I am totally new to docker and learning on the go.
Hey, Luis here. Think of docker as an isolated micro virtual machine(it's not, but for the sake of this example let's imagine that it is), so when you do a docker run basically it's creating a new computer every single time. This means that your Metabase database (the one saves your user) will be recreated every time.
So you have 3 options:
- you tell docker to save your h2 database outside of the container
- you use an external database
- you start the same container instead of a new one every time with docker run (do "docker ps -a" to check for the stopped containers and then use docker start"
I hope you enjoy learning docker, it's an outstanding technology
Makes total sense @Luiggi.
I'm using Docker Desktop so Option 3 worked like a charm.
Now all I have to do is workaround the "Socket fail to connect to host..." error I get when trying to connect to my local mysql db. But that's another post!