Running ruby sript with Cron in Centos7 Docker image
NickName:Eamonn McEvoy Ask DateTime:2015-09-16T17:04:37

Running ruby sript with Cron in Centos7 Docker image

I've setup a cron job in my centos7 docker image but its not working

crontab -e
    >> * * * * * ruby myrubyfile.rb

This same cron job is working on my actual centos7 machine.

Copyright Notice:Content Author:「Eamonn McEvoy」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/32604126/running-ruby-sript-with-cron-in-centos7-docker-image

More about “Running ruby sript with Cron in Centos7 Docker image” related questions

Running ruby sript with Cron in Centos7 Docker image

I've setup a cron job in my centos7 docker image but its not working crontab -e >> * * * * * ruby myrubyfile.rb This same cron job is working on my actual centos7 machine.

Show Detail

Cron (and systemd) in centos7 in docker

I want to run cron in a centos7 OS running in docker. When I try and start crond I get: Failed to get D-Bus connection: Operation not permitted Googling shows that that is because systemd is not

Show Detail

Docker CentOS 7 - cron not working in local machine

In my VPS, I have created a docker image containing cron running as entry command. I also have a sample cron file that says it should execute the command every 5 minutes. Dockerfile: FROM centos:

Show Detail

Running an docker image with cron

I am using an image from docker hub and it uses cron to perform some actions after some interval. I have registered and pushed it as described in documentation as a worker process (not a web). It a...

Show Detail

How to run cron in Docker container from Ruby image

I've tried setting up cron to run in my Docker container, but without success thus far. This is the cron-related parts of the Dockerfile: FROM ruby:2.2.2 # Add crontab file in the cron directory...

Show Detail

Running Bash Script on Cron: Centos7

I have the the following script on below which will send a desktop notification on how full the /tmp and /var/tmp directories are to run on a Cron. Below is the script. tmpsize=`du -sm /tmp | cut ...

Show Detail

Running apache and cron in docker

I understood there should be only one process running on foreground in a docker container. Is there any chance of running both apache and cron together in foreground? A quick search says there is

Show Detail

Rails cron job not running using whenever on Docker

I'm currently using whenever gem for running my Sidekiq worker. It's perfectly fine when I'm running the Sidekiq worker but when I run it in background using cron it's not working. Dockerfile FROM

Show Detail

Adding cron to a Docker image

I created a Docker container from the python image to host a Django project. Now I'd like to run some cron jobs to update data in the Django project. However, since I created it using the python i...

Show Detail

Docker - Using PHP Cli base image for Cron container

So I've been having loads of fun with Docker and Docker-Compose recently, but need the community's advice here. I have a docker-compose file comprised of: An Nginx container (based on nginx:1.12-a...

Show Detail