Cron Docker image based on Alpine Linux and Docker client
234
Dockerfile linksDistinctive feature this image is that allows you to run commands from other containers
Example /path/to/crontab
#
* * * * * docker exec php php -v
Without build
$ docker run --volume /path/to/crontab:/etc/crontabs/root --network host ivankomolin/cron
With build
FROM ivankomolin/cron
COPY /path/to/crontab /etc/crontabs/root
Using docker-compose
version: '3.4'
services:
cron:
restart: always
image: ivankomolin/cron
volumes:
- /path/to/crontab:/etc/crontabs/root
network_mode: host
Content type
Image
Digest
Size
15.1 MB
Last updated
over 7 years ago
docker pull ivankomolin/cron