Skip to content

Instantly share code, notes, and snippets.

@januszm
Last active March 19, 2021 11:10
Show Gist options
  • Save januszm/71bffc8119869b3bb9323775b995b22b to your computer and use it in GitHub Desktop.
Save januszm/71bffc8119869b3bb9323775b995b22b to your computer and use it in GitHub Desktop.
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