• Reset your password
Home
OO PHP, Drupal, Symfony Developer and Architect
Tim Rabbetts

Main navigation

  • Home
  • Blog
  • Log in

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

Breadcrumb

  • Home
  • blog
  • the input device is not a tty docker compose and cron
  • the input device is not a TTY, docker-compose and cron
Tim
Rabbetts
By zarexogre | 3:01 PM UTC, Sun November 08, 2020
hamburg, port of hamburg, container ship
docker

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"