dockerfile-ENTRYPOINT 和CMD配合,以及他们的区别
推荐如下:
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"]
区别如下:
运维虐我千万遍,我对运维如初恋。