Denis Machard

My technical gists

Infrastructure architect by profession but always consider himself as a developer and an open source enthusiast.
@github @mastodon @rss

Grafana installation with persistent volume

This post details how to run grafana container with persistent volume

Create volume

Create a persistent volume for your data in /var/lib/grafana (database and plugins)

docker volume create grafana-storage

Start grafana

docker run  -d -p 80:3000 --name=grafana --restart=always -v grafana-storage:/var/lib/grafana grafana/grafana

Test

http://yourip:80/

Default account:

  • login: admin
  • password: admin
propulsed by hugo and hugo-theme-gists