Skip to main content

the input device is not a TTY, docker-compose and cron

Updated by Tim Rabbetts on
hamburg, port of hamburg, container ship

I run a docker-compose command like this from cron and in the log its says:

the input device is not a TTY
/usr/local/bin/docker-compose exec container_php bash -c "./myscript.php"

Works fine from command line.  Needed to add -T and worked perfect.

/usr/local/bin/docker-compose exec -T labs_php bash -c "./labs/grafana/data/pull.php"

 

Comments


I am not sure where you are getting your information, but good topic. I needs to spend some time learning more or understanding more. Thanks for wonderful information I was looking for this information for my mission.
Tue, 10/09/2024

Add new comment