docker error in crontab: the input device is not a TTY
Jan 29, 2018
when you run a docker command via crontab like below
# /usr/bin/docker exec -it containername /path/to/command
you will get “the input device is not a TTY” error message. To fix it simply remove -t parameter
-t, –tty Allocate a pseudo-TTY
and use only -i
Also no need to mention! Always use full path for the commands in cron or define thePATH variable.
ismail yenigul