kijart / docker-monit

Run Monit inside docker
https://hub.docker.com/r/kijart/monit/
MIT License
7 stars 4 forks source link

Error when starting in docker #5

Open BillyTom opened 2 years ago

BillyTom commented 2 years ago

I am using a docker-compose file to bring up the service:

version: "3.0"

services:
    monit:
        image: kijart/monit
        restart: unless-stopped
        environment:
            TEST: "servertest"
        ports:
            - "2813:2813"
        volumes:
            - ./monitrc:/etc/monitrc

When I check the log output all the container does is:

input in flex scanner failed
input in flex scanner failed
input in flex scanner failed
input in flex scanner failed
input in flex scanner failed
input in flex scanner failed
input in flex scanner failed
extrafein commented 2 years ago

Hi, changing the last line of the Dockerfile to CMD ["monit", "-I", "-B", "-c", "/etc/monit/monitrc"] did solve my "input in flex scanner failed" issue.

BittyByte commented 2 years ago

Thanks for your solution. It works for me now too! Have a great day.

kijart commented 2 years ago

This can help as well #4