We can create/mount volume and persist application data between multiple restarts in Prometheus by using below command:
$ docker volume create a-new-volume
$ docker run \ –publish 9090:9090 \
–volume a-new-volume:/prometheus \
–volume “$(pwd)”/prometheus.yml:/etc/prometheus/prometheus.yml \ prom/prometheus