When using a Docker install

Where is the grafana.ini file? I put one at /etc/grafana/grafana.ini and then tried -v /etc/grafana/grafana.ini:/etc/grafana/grafana.ini and I also tried --config=/etc/grafana/grafana.ini and I also tried -e "GF_PATHS_CONFIG=/etc/grafana/grafana.ini" but none of them worked to modify a setting.

Is the file mote in this installation type? I was able to use the “-e GF_…” method to change the settings but I was hoping to use an .ini file instead.

Also, where is the working dir? The docs mention $WORKING_DIR/conf/defaults.ini

The docker package is based on the Debian/Ubuntu install. Here are where the files are located: http://docs.grafana.org/installation/debian/#package-details

But GF_PATHS_CONFIG should work. This worked for me:

  1. Created an ini file outside of docker called grafana2.ini in /etc/grafana
  2. Ran:
    docker run -d --name=grafana -v /etc/grafana/grafana2.ini:/etc/grafana/grafana2.ini -e "GF_PATHS_CONFIG=/etc/grafana/grafana2.ini" grafana/grafana:5.0.3

I guess I have a typo in the ini file. I stripped it down and now it is working. Thank you for the quick reply!