JasonRivers / Docker-Nagios

Docker image for Nagios
MIT License
232 stars 254 forks source link

Build errors #52

Open scottthepotter opened 6 years ago

scottthepotter commented 6 years ago

Sorry, very much a 'newb' with Docker, but I believe that something upstream has changed in the past several weeks that affects your Dockerfile. I can run a pull request and run the container with no issue, but if I download your docker file and build it locally and try to run it, it won't run without errors. Once the container started it kept on throwing errors with run postfix, run nrpe, etc. I was trying to modify the Dockerfile to allow setting in the postfix conf files to behave with an MTA and got errors and finally got back to the issue that it wouldn't even build locally. Also if I use the image as the base of a docker-compose file I get the same errors.

scottthepotter commented 6 years ago

Here are the errors: monitor | Started runsvdir, PID is 9 monitor | runsv apache: fatal: unable to start ./run: access denied monitor | runsv rsyslog: fatal: unable to start ./run: access denied monitor | runsv nagios: fatal: unable to start ./run: access denied monitor | runsv postfix: fatal: unable to start ./run: access denied monitor | runsv apache: fatal: unable to start ./run: access denied monitor | runsv rsyslog: fatal: unable to start ./run: access denied monitor | runsv postfix: fatal: unable to start ./run: access denied monitor | runsv nagios: fatal: unable to start ./run: access denied monitor | runsv apache: fatal: unable to start ./run: access denied monitor | runsv rsyslog: fatal: unable to start ./run: access denied monitor | runsv postfix: fatal: unable to start ./run: access denied monitor | runsv nagios: fatal: unable to start ./run: access denied monitor | runsv apache: fatal: unable to start ./run: access denied monitor | runsv rsyslog: fatal: unable to start ./run: access denied monitor | runsv postfix: fatal: unable to start ./run: access denied monitor | runsv nagios: fatal: unable to start ./run: access denied monitor | runsv apache: fatal: unable to start ./run: access denied monitor | runsv postfix: fatal: unable to start ./run: access denied monitor | runsv rsyslog: fatal: unable to start ./run: access denied monitor | runsv nagios: fatal: unable to start ./run: access denied

JasonRivers commented 6 years ago

I have just done a clean checkout of the repository and built it and it runs without any issues. Did you modify anything in the repository before building? What OS are you building on?

JasonRivers commented 6 years ago

I have just committed a change that runs a chmod +x on the files that your container is failing on, hopefully this should resolve the issue you're seeing.