Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Can't run docker with exec() (the input device is not a TTY) #680
Comments
|
This should be fixed by #524 |
|
I believe the same problem with docker compose exec |
|
standard |
|
Duplicate of #424 |
|
Workaround is in the FAQs: https://github.com/shelljs/shelljs/wiki/FAQ#running-interactive-programs-with-exec |
Node version (or tell us if you're using electron or some other framework):
7.7.1 (and also 7.5.0)
ShellJS version (the most recent version/Github branch you see the bug on):
0.7.6
Operating system:
Windows 10 x64, Ubuntu 16.04.2 x64
Description of the bug:
docker runcommand can't be executed withexec(). (May also affect other programs.)I'm executing this script (via
node script.js):Depending on the operating system and terminal used, I'm getting different errors:
Windows 10 & Cmder:
Windows 10 & regular cmd:
Ubuntu:
Running the same command directly on the command line or even through
child_process.spawn()works, though: