在 docker 中将 monit 作为前台进程启动

Start monit as a foreground process in docker

我想在 docker 中启动监控进程。

自从它被守护进程后,一旦 monit 启动,容器就会完成。 运行 将其作为前台进程的最佳方式是什么?

来自https://wiki.gentoo.org/wiki/Monit

Running monit in the foreground
To run monit in the foreground and provide feedback on everything it is detecting, use the -Ivv option:

root #monit -Ivv