ob_bulkstash: docker-compose w/ crond doesn’t stay running
running docker-compose up
with the RCLONE_CRONFILE env var set doesn’t run, a perpetual command was needed to keep it running like command: tail -f /dev/null
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 18 (10 by maintainers)
Alright, I have over simplified the minimum use case but it should be representative of the problem.
Here is
docker-compose.yml
And here is
crontab.conf
:To me, the expected behavior is the following:
rclone version
as soon as the container startrclone version
every 10 minutes through cronBut when running
docker-compose up
, here is the output:As soon as
rclone version
as run, the container exits. It is just the version print but it could be any other rclone command that takes longer, this is just to simplify the testing and debugging. crond and monit are indeed running the background but only until docker-entrypoint.sh finishes executing. At that point docker assumes the container is done and stops it (as expected) which, in turn, also stops monit from managing crond inside the container.