Skip to content

Q: containter.logs follow vs stream ? non-blocking logs ? #2315

Open
@vitalik

Description

@vitalik

I think documentation does not really explain the follow argument in container.log function...

what does it do ?

and second question - is there a way to get logs(..., stream=True) to be non blocking ?

What I'm trying to achieve: I have 10+ containers running and they write time to time some data to stdout...
I want to make a script that periodically pulls latest logs for each of them...

but container.log(stream=True) is blocked until a line appears in stdout..

is there a way to make it non-blocking ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions