dockerfile-ENTRYPOINT 和CMD配合,以及他们的区别
时间:2020-06-17 12:50:32
收藏:0
阅读:82
推荐如下:
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"]
区别如下:
原文:https://www.cnblogs.com/kevincaptain/p/13151593.html
评论(0)