Docker Community Forums

Share and learn in the Docker community.

Using cron and docker exec to run scheduled work inside another container


(Egrimeshd) #1

Hello all,

I have an Informix database running inside a container. The standard way we backup our database is by having cron job that invokes a utility called ontape. However, ontape only works inside the container where the database is is running. I’m considering a cron container that uses docker exec to invoke ontape. Is this workable? Is there a better alternative?

Thanks,

Erik