I wrote a script that let the user choose the command that will be executed in shell.
For that I used child-process-promise library – a code for running a command can be simplified to this:
import Process from 'child-process-promise';
const test = async () => {
await Process.exec('docker run --rm --tty --interactive ...');
};
test();
All would be okay, but I'm getting stderr like:
the input device is not a TTY\nmake: *** [display_status] Error 1\n
What am I doing wrong here?
As suggested in this other post removing the -t/--tty flag should resolve the issue.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With