question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Why has the crontab been moved out of the docker container?

See original GitHub issue

Hi 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:closed
  • Created 3 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Callum17commented, Aug 6, 2020

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

0reactions
loblabcommented, Jan 2, 2021

Merged PR of @Callum17 . thanks.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found