You can get the image from Docker Hub too:
docker pull ursweiss/prometheus-alpine-arm32v7
Three volumes are used to store persistent data:
- Database (prometheus-storage)
- Config (prometheus-etc)
docker volume create prometheus-storage
docker volume create prometheus-etc
Run the container:
docker run \
-d \
-it \
-p 9090:9090 \
--name=prometheus \
--mount type=volume,src=prometheus-storage,dst=/prometheus,volume-driver=local \
--mount type=volume,src=prometheus-etc,dst=/etc/prometheus,volume-driver=local,readonly \
ursweiss/prometheus-alpine-marm32v7