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"]

 

区别如下:

https://blog.csdn.net/u010900754/article/details/78526443?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.nonecase&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.nonecase

posted @ 2020-06-17 11:43  凯文队长  阅读(505)  评论(0编辑  收藏  举报