Why has the crontab been moved out of the docker container?
See original GitHub issueHi everyone,
I just pulled the latest version and realized, that for Docker usage, the docker-compose and Dockerfile have changed. As far as i understand it, it is intended that the crontab is run on the Dockerhost, which executes a docker exec
to run the update script inside the container. Why has this implementation been choose?
This goes completely against the docker concept. When I run docker-compose up
I want everything that is related and neccessary for that container to be in there as well as all of it removed when I run docker-compose down
Cheers Fabian
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Cron and Crontab files not executed in Docker - Stack Overflow
As Docker uses overlays, it results with more than one link to the file, so you have to touch it in your startup...
Read more >cron and crontab are missing in docker image of ubuntu 16.04
The cron command is not installed by default in the image ubuntu:16.04. Need to run apt-get install cron.
Read more >Running Cron in Docker - The SparkTree - Jason Kulatunga
Running cron in a Docker container is incredibly difficult to do correctly. This is partially because cron was designed to run in an ......
Read more >I am getting an error trying to get cron to run on/against a ...
I found out why it is not working in the docker container. cron was not running within. Using this stack exchange I found...
Read more >Docker and cron jobs - Reddit
Meaning that the job should start the container and then it shuts down when it's complete. Removes all the complexity of a long-running...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I actually wondered why it is being run via exec + docker-compose service in the first place. Is there a reason why we can’t simply have a standalone docker image?
See “usage with docker” in the readme: https://github.com/Callum17/noip-renew https://github.com/loblab/noip-renew/pull/29/commits
Merged PR of @Callum17 . thanks.