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

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 remote -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 use PATH variable.

ismail yenigul

 

 

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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s