Docker Community Forums

Share and learn in the Docker community.

What's the best solution for running a cron on one service when multiple containers used for that service on docker-cloud?

(Andrew Stilliard) #1

Hi, I’m wondering what is the current recommendation on running a command on a regular basis such as with a cron, but only on one of the multiple containers for a given service?
Ideally I’d like to be able to specify the service and specify a command to run with docker exec inside one of that services containers based on a cron style time, anything like this available currently?