Docker update is resetting the install

  • What Grafana version and what operating system are you using?
    Docker

  • What are you trying to achieve?
    Have the Docker container update without it resetting to default with no data

  • How are you trying to achieve it?
    updating the docker container

  • What happened?
    Everytime the container for Grafana updates it seems to reset it self, meaning I have to set the password and setup my dashboards again

  • What did you expect to happen?
    Not have to resetup the system from default each time there is an update

  • Can you copy/paste the configuration(s) that you are having problems with?

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.

#!/bin/bash
workname=grafana
workdir=/docker/data/$workname
workpackage=grafana/grafana
extport=3000
intport=3000
docker run -d -h $workname
–restart=always
–name $workname
-v $workdir/config:/config
-p $extport:$intport
-e TZ=Australia/Queensland
-e PGID=$PGID -e PUID=$PUID
$workpackage

that is the Docker run command I am using


That is the report I have from Watch tower this morning after updating the container and when I go to access it, its fully reset and all data is missing

Thanks for that, was also jsut reading How to Move/Migrate Grafana to a newer version/system on a local/container environment

updating my container now