-
-
Notifications
You must be signed in to change notification settings - Fork 485
Open
Description
I am using Dockerode to create a Web Terminal. That works fine. However, when user close console, I need to kill de ash, bash, dash or sh process attached to Xterm. To this, I need to store the PID in the moment of exec command:
const exec = await container.exec({
Cmd: [ '/bin/' + command ],
AttachStdin: true,
AttachStdout: true,
User: 'root',
Tty: true,
})
const stream = await exec.start({ stdin: true, hijack: true, Detach: false });
I try the inspect command (const data = await exec.inspect()), but the PID returned is not of process.
Is there a way to get this PID by Dockerode?
srfrnk
Metadata
Metadata
Assignees
Labels
No labels