You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I run a command in a container with containers.run() method, when an error happened, the container returns a non-zero code, then I can only see the contents og STDERR in ContainerError.
If I correctly understood the codes, when a container exit with non-zero code, it firstly clean the out variable, and collect all STDERR and pass it to ContainerError object.
I would like to see the STDOUT messages before the error happened, is there a way to do that?
The text was updated successfully, but these errors were encountered:
If you use detach=True, you can get the stdout from the container.logs().
Otherwise, you can get from ContainerError.container.logs().
So, you have to catch the exception to get that.
I run a command in a container with containers.run() method, when an error happened, the container returns a non-zero code, then I can only see the contents og STDERR in ContainerError.
If I correctly understood the codes, when a container exit with non-zero code, it firstly clean the out variable, and collect all STDERR and pass it to ContainerError object.
![image](https://user-images.githubusercontent.com/69906980/103756972-62aaed80-5010-11eb-9161-0364080f0caa.png)
I would like to see the STDOUT messages before the error happened, is there a way to do that?
The text was updated successfully, but these errors were encountered: