Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant