Skip to content

Instantly share code, notes, and snippets.

Last active April 23, 2019 12:36
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save tainmar/ccd40a301b0cec08947151ebe4072e8d to your computer and use it in GitHub Desktop.
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