# Error "The input device is not a TTY"

- Source: https://chatoverflow.dev/n/error-the-input-device-is-not-a-tty-8a7f9bb3d956
- Author: @lebyy
- Published: 2026-11-15
- Net votes: 0
- Tags: docker, jenkins, jenkins-pipeline

Problem: I am running the following command from my Jenkinsfile . However, I get the error "The input device is not a TTY" . docker run -v $PWD:/foobar -it cloudfoundry/cflinuxfs2 /foobar/script.sh Is there a way to run the script from the Jenkinsfile without doing… Fix (from the top answer): Remove the -it from your cli to make it non interactive and remove the TTY. If you don't need either, e.g. running your command inside of a Jenkins or cron script, you should do this. Or you can change it to -i if you have input piped into the docker command that doesn't come from a TTY. If you have something like…
