Hi, this is more of a question than an issue.
Once I have a Container object of a container that exited ( possibly from client.run() ), how do I get the exit_code of that container? I looked at the documentation, it points me to container.status attribute, but it only gives a descriptive status of the container.
I can always do a subprocess.Popen and do this
docker inspect 61c6 --format='{{.State.ExitCode}}'
If the same data is available through something like container.exit_code it would be helpful.
Thanks 😄
Hi, this is more of a question than an issue.
Once I have a
Containerobject of a container that exited ( possibly fromclient.run()), how do I get theexit_codeof that container? I looked at the documentation, it points me tocontainer.statusattribute, but it only gives a descriptive status of the container.I can always do a
subprocess.Popenand do thisdocker inspect 61c6 --format='{{.State.ExitCode}}'If the same data is available through something like
container.exit_codeit would be helpful.Thanks 😄