Skip to content

how to get STDOUT when the container exit with non-zero code? #2745

@jih-dk

Description

@jih-dk

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

I would like to see the STDOUT messages before the error happened, is there a way to do that?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions