docker error in crontab: the input device is not a TTY

ismail yenigül
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

--

--

ismail yenigül
ismail yenigül

Written by ismail yenigül

CKA/CKAD,AWS certified Freelancer DevOps Engineer

Responses (3)