Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[docker-container-exec_run] ExecDetachResult structure for exec_run in detached mode #3295

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

BillyGLW
Copy link

Tested PoC - there is no way to trace exec_run's exit_codes once detach=True is specified as Id is lost within this library.

As Id will be retreived - user can use self.client.api.exec_inspect on its own - checking retrived exit_code when the command is done (or not).

I suggest not to combine ExecDetachResult into ExecResult namedtuple as status checking require additional request to docker daemon. Also, currently retreived ExecResult with exit_code as None is problematic as no other information is provided and there is no other way to check it.

Signed-off-by: Piotr Nowak <malllock212@gmail.com>
@BillyGLW BillyGLW force-pushed the fix/exec_run_detached_struct branch from 2546cbe to c90859b Compare October 17, 2024 13:20
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant