Public | Automated Build

Last pushed: a year ago
Short Description
Docker container for Grafana suitable for Kubernetes deployments
Full Description

Grafana Docker image

This project builds a Docker image with the latest master build or specific tag of Grafana.

Running your Grafana container

Start your container binding the external port 3000.

docker run -d --name=grafana -p 3000:3000 grafana/grafana

Try it out, default admin user is admin/admin.

Configuring your Grafana container

All options defined in conf/grafana.ini can be overriden using environment
variables by using the syntax GF_<SectionName>_<KeyName>.
For example:

docker run \
  -d \
  -p 3000:3000 \
  --name=grafana \

More information in the grafana configuration documentation:

Grafana container with persistent storage via AWS EFS

The provided Kubernetes yaml configurations (located in kubernetes/), provide two Persistent Volume Claims that are used for the Grafana database and configuration.

Installing plugins for Grafana 3

Pass the plugins you want installed to docker with the GF_INSTALL_PLUGINS environment variable as a comma seperated list. This will pass each plugin name to grafana-cli plugins install ${plugin}.

docker run \
  -d \
  -p 3000:3000 \
  --name=grafana \
  -e "GF_INSTALL_PLUGINS=grafana-clock-panel,grafana-simple-json-datasource" \

Running specific version of Grafana

# specify right tag, e.g. 2.6.0 - see Docker Hub for available tags
docker run \
  -d \
  -p 3000:3000 \
  --name grafana \

Configuring AWS credentials for CloudWatch support

docker run \
  -d \
  -p 3000:3000 \
  --name=grafana \
  -e "GF_AWS_PROFILES=default" \
  -e "GF_AWS_default_REGION=us-east-1" \

You may also specify multiple profiles to GF_AWS_PROFILES (e.g.
GF_AWS_PROFILES=default another).

Supported variables:

  • GF_AWS_${profile}_ACCESS_KEY_ID: AWS access key ID (required).
  • GF_AWS_${profile}_SECRET_ACCESS_KEY: AWS secret access key (required).
  • GF_AWS_${profile}_REGION: AWS region (optional).



  • Plugins are now installed into ${GF_PATHS_PLUGINS}
  • Building the container now requires a full url to the deb package instead of just version
  • Fixes bug caused by installing multiple plugins


  • Plugins dir (/var/lib/grafana/plugins) is no longer a separate volume


Docker Pull Command
Source Repository