Closed abal5 closed 6 years ago
Hi Anmol,
Can you give some more details about how you start the container?
Machiel
On Thu, Jan 4, 2018 at 8:42 PM, Anmol Bal notifications@github.com wrote:
I get an error message when running this container, I have tried building it manually and also doing a docker pull.
I get this error below:
/opt/bootstrap.sh: line 20: omd: command not found
If the rpm package is installed is that sufficient enough to call on omd or could the ordering be wrong?
I have done a manual pull on my machine and that does not work, I originally had this running as a container using Rancher and it seemed to be working fine but no longer is the case.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/viper0131/check_mk/issues/18, or mute the thread https://github.com/notifications/unsubscribe-auth/AFhJZ7Zippt9ivpxRcuzIUJmC2PYIR08ks5tHSmIgaJpZM4RTef7 .
I pulled the latest image myself for testing. I run's fine with the following command:
docker run -it --name check_mk --publish 80:5000 --rm nlmacamp/check_mk
You can also try debugging by skipping the default entrypoint:
docker run -it --name check_mk --publish 80:5000 --entrypoint=/bin/bash --rm nlmacamp/check_mk
It will give you the bash command prompt. try to enter
omd version
this should show: OMD - Open Monitoring Distribution Version 1.4.0p21.cre
These are the commands I am using to start the container:
docker run -itd --name check_mk2018 \ --publish 80:5000 \ --restart always \ --volume /home/ops/check-mk:/opt/omd \ -e "MAILHUB=<123.45.6.789:9025>" \ nlmacamp/check_mk
Your recommended command below works fine
docker run -it --name check_mk --publish 80:5000 --rm nlmacamp/check_mk
However adding a volume variable seems to cause the issue I mentioned above for me all other settings seem to be working fine; what am I missing here? I would like to keep persistent data and not lose it, am I mounting/linking to the correct directory?
Update:
It seems if I make a volume mount using
--volume <local dir>:/backup
it works.
However --volume <local dir>:/opt/omd
does not work and causes the issues above.
I get an error message when running this container, I have tried building it manually and also doing a docker pull.
Docker version being used is: 17.09.0-ce I've also tried 17.12.0-ce
I get this error below:
/opt/bootstrap.sh: line 20: omd: command not found
If the rpm package is installed is that sufficient enough to call on omd or could the ordering be wrong?
I have done a manual pull on my machine and that does not work, I originally had this running as a container using Rancher and it seemed to be working fine but no longer is the case.