apocas / docker-modem

Docker Remote API network stack driver.
Apache License 2.0
233 stars 111 forks source link

Restore exec output stream #166

Closed JairZijp closed 8 months ago

JairZijp commented 8 months ago

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 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

JairZijp commented 8 months ago

not relevant for this package, more for dockerode itself