Cron daemon not running
Documentation states that “The cron daemon is started automatically on system boot and executes the scripts placed in the folders under /etc/periodic”
https://wiki.alpinelinux.org/wiki/Alpine\_Linux:FAQ\#My\_cron\_jobs\_don.27t\_run.3F
However this is not the case for the docker version.
Steps to reproduce:
With a vanilla image
- open a new terminal and type: docker run -it alpine:3.6 /bin/sh
- type inside the docker container: ps -ef | grep cron
With an image with logrotate installed
(in case it’s due to not having anything to run)
-
Create a docker file with the following:
FROM alpine:3.6
RUN apk add --update --no-cache logrotate
-
open a new terminal and type: docker run -it test
-
type inside the docker container: ps -ef | grep cron
In both cases you can see that the cron daemon is not running.
(from redmine: issue id 8195, created on 2017-11-22, closed on 2017-11-24)