Skip to content

Instantly share code, notes, and snippets.

@DeathPoem
DeathPoem / Dockerfile
Created Jul 16, 2020
how to Change storage.tsdb.retention on Docker Hub "prom/prometheus"
View Dockerfile
FROM prom/prometheus
CMD ["--config.file=/etc/prometheus/prometheus.yml","--storage.tsdb.path=/prometheus","--web.console.libraries=/usr/share/prometheus/console_libraries","--web.console.templates=/usr/share/prometheus/consoles","--storage.tsdb.retention.size=100GB"]
# docker build --tag 'prom/prometheus:myprom' .
# docker run --network=host -v /$path/prometheus.yml:/etc/prometheus/prometheus.yml -v /export/Prometheus:/prometheus -d prom/prometheus:myprom