-
-
Save WooodHead/c5a25dac2e877a6bf552c09676255ff8 to your computer and use it in GitHub Desktop.
How to safely update Metabase if you use docker deployments WITHOUT ANY DATA LOSS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# check the name of metabase container | |
docker ps | |
# make a backup | |
docker cp metabase:/metabase.db /root/ | |
# get updated version | |
docker pull metabase/metabase | |
# remove old running container | |
docker stop metabase | |
docker rm metabase | |
# run new Metabase with backuped data | |
docker run -d -p 3000:3000 --name metabase -v /root/metabase.db:/metabase.db -e "MB_DB_FILE=/metabase.db" metabase/metabase |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment