gjcarneiro / yacron

A modern Cron replacement that is Docker-friendly
MIT License
449 stars 38 forks source link

Error while trying to run the Docker container #20

Closed bluemix closed 6 years ago

bluemix commented 6 years ago

Description

I have the files from https://github.com/gjcarneiro/yacron/tree/master/example/docker

What I Did

docker run -ti yacrondemo -l DEBUG # Ctrl-C to stop

I got this error

ERROR:yacron:Configuration error: while parsing a mapping
unexpected key not in schema 'captureStdout'
  in "/etc/yacron.d/yacrontab.yaml", line 10, column 1:
    captureStdout: 'true'
    ^ (line: 10)
gjcarneiro commented 6 years ago

Should be captureStdout: true not captureStdout: 'true'.

Or are you saying that the docker demo in yacron itself is not working? Works for me..

Can you post your yacrontab.yaml?

bluemix commented 6 years ago

yacrontab.yaml was taken literally from https://github.com/gjcarneiro/yacron/blob/master/example/docker/yacrontab.yaml

bluemix commented 6 years ago

ouch, captureStdout: true wasn't belonging to the jobs scope. very sorry :)