When starting an exec in a container it returns stream.Duplex with which I'm reading the output of the exec.
Is it possible to get access to this stream after a restart of my script when the exec is still running?
I've tried creating a new Exec instance and doing a start() on that, to try to get the stream, but that gives me the error:
can only start created exec sessions, while container <id> session <id> state is "stopped": exec session state improper
Is it possible to restore an exec output stream?
When starting an exec in a container it returns
stream.Duplex
with which I'm reading the output of the exec. Is it possible to get access to this stream after a restart of my script when the exec is still running?I've tried creating a new
Exec
instance and doing astart()
on that, to try to get the stream, but that gives me the error:can only start created exec sessions, while container <id> session <id> state is "stopped": exec session state improper