Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Safely upgrade Metabase and relaunch it
  1. Copy the database :

    cp -r metabase-data/ metabase-data-backup/
  2. Stop the container :

    docker kill metabase
    docker rm `docker ps -aq`
  3. Pull the latest version of Metabase

    docker pull metabase/metabase:latest
  4. Launch new Version

    docker run --restart always -d -p 80:3000 -v ~/metabase-data:/metabase-data -e "MB_DB_FILE=/metabase-data/metabase.db" --name metabase metabase/metabase
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment