I want to use a Crontab to execute a script at 8 o'clock every morning, but my script contains command docker exec -it
. So returns following error"cannot enable tty mode on non tty input"
The solution I found was not use the -t
parameter, But to interact with docker, I have to allocate tty.
Is there any way to make Crontab create a tty or other better timed execution method?
Edit: The parameters I need to pass to the docker are generated by the Host CentOS . Can I execute cron job inside docker?