推荐如下:
ENTRYPOINT ["/etc/prometheus/prometheus"]
CMD ["--config.file=/etc/prometheus/prometheus.yml", "--storage.tsdb.path=/etc/prometheus/data" ,"--web.console.libraries=/etc/prometheus/console_libraries" ,"--web.console.templates=/etc/prometheus/consoles", "--web.enable-lifecycle"]
区别如下: