Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function runExec(container) {
- var options = {
- Cmd: ['bash', '-c', './script.sh'],
- AttachStdout: true,
- AttachStderr: true
- };
- container.exec(options, function (err, exec) {
- if (err) return;
- exec.start(function (err, stream) {
- if (err) return;
- container.modem.demuxStream(stream, process.stdout, process.stderr);
- });
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement