Skip to content

Instantly share code, notes, and snippets.

Last active Mar 19, 2021
What would you like to do?
Grafana upgrade
# 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