Last active
March 19, 2021 11:10
-
-
Save januszm/71bffc8119869b3bb9323775b995b22b to your computer and use it in GitHub Desktop.
Grafana upgrade
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
# first, backup running config | |
docker exec -it -u 0 grafana bash | |
cat /etc/grafana/grafana.ini | |
# copy output and paste to backup file somewhere or use docker cp | |
docker cp grafana:/etc/grafana/grafana.ini grafana.ini.bak | |
docker pull grafana/grafana:latest | |
docker stop grafana | |
docker rm grafana | |
docker run --name grafana --detach=true --publish 80:3000 --link graphite:graphite --volumes-from grafana-storage grafana/grafana | |
# copy updated and adjusted grafana.ini to running container and restart it | |
docker cp grafana.ini.updated grafana:/etc/grafana/grafana.ini | |
docker restart grafana |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment