Error “The input device is not a TTY”

后端 未结 11 1245
野的像风
野的像风 2020-11-27 09:20

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:         


        
11条回答
  •  猫巷女王i
    2020-11-27 09:43

    when using 'git bash',

    1) I execute the command:

    docker exec -it 726fe4999627 /bin/bash
    

    I have the error:

    the input device is not a TTY.  If you are using mintty, try prefixing the command with 'winpty'
    

    2) then, I execute the command:

    winpty docker exec -it 726fe4999627 /bin/bash
    

    I have another error:

    OCI runtime exec failed: exec failed: container_linux.go:344: starting container process caused "exec: \"D:/Git/usr/bin/
    bash.exe\": stat D:/Git/usr/bin/bash.exe: no such file or directory": unknown
    

    3) third, I execute the:

    winpty docker exec -it 726fe4999627 bash
    

    it worked.

    when I using 'powershell', all worked well.

提交回复
热议问题