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

标签 docker kubernetes monit

我想在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

关于docker - 在docker中启动monit作为前台进程,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48225106/

相关文章:

docker - 用Docker随时随地构建,交付和运行任何应用程序的确切含义

python - Kubernetes:加载 ASGI 应用程序时出错。在模块 "app"中找不到属性 "main"

python - 如何将 python 连接到使用 docker 运行的 cassandra

监视 "cron-like"任务

linux - 我在使用正则表达式的 monit 语法中做错了什么?

java - RabbitMQ、docker、单队列、多个消费者

kubernetes - 同一个 Pod 中的每个容器是否都有独立的文件系统?

docker - Kubernetes 使用 flannel 创建容器时卡在 "ContainerCreating"-state

docker - SSL 证书验证适用于 Docker,而不适用于 Kubernetes

javascript - 监控不发送警报消息并给出错误 ' Alert handler failed, retry scheduled for next cycle'