Simple Grafana Docker Script

I was looking for a quick way to spin up a Grafana dashboard that would persist data between restarts.

Add the directories:

/apps/
/apps/grafana/
/apps/grafana/data/
/apps/grafana/scripts

cat grafana_docker.sh

!/bin/bash

start grafana

docker run -d -p 3000:3000 --name=grafana \
--volume /apps/grafana/data:/var/lib/grafana \
-e "GFINSTALLPLUGINS=grafana-clock-panel" \
grafana/grafana-enterprise


You'll only receive email when they publish something new.

More from Ken G
All posts