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

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