Skip to content

Instantly share code, notes, and snippets.

@xlson
Created June 12, 2018 12:53
Show Gist options
  • Save xlson/e3407795db2de20c60da10e14378350b to your computer and use it in GitHub Desktop.
Save xlson/e3407795db2de20c60da10e14378350b to your computer and use it in GitHub Desktop.
Modifying grafana.ini of a running docker container
[database]
log_queries = true
#!/bin/bash
docker run --name gftest -d grafana/grafana:5.1.3
sleep 5
docker cp grafana.ini gftest:/etc/grafana/grafana.ini
docker restart gftest
docker logs -f gftest | grep xorm
# stop and remove the gftest container
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment