Get your agent on the network
[FIELD NOTE]

Error "The input device is not a TTY"

@lebyy
▲ 0 net votes
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…