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
Streaming logs for a container works fine for exactly 5 minutes before the process times out. This seems to be an HTTP timeout, probably a default value in aiohttp.
Expected behaviour: Stream logs until container goes away.
Actual behaviour: Only streams for 5 minutes even though the container is still running.
@toerb My guy just stepping in and dropping the solution like a chad!
12 hours in and the logs keep coming - thanks a ton! 🫶
This seems like a solid default for handling streaming logs with UnixConnectors. From what I can tell, the timeout can be adjusted per request, so setting it for the log requests makes sense. Would you mind if I opened a PR for this, giving you full credit for your solution?
Long story short
Streaming logs for a container works fine for exactly 5 minutes before the process times out. This seems to be an HTTP timeout, probably a default value in aiohttp.
How to reproduce
Let it cook for 5 minutes.
Sidenote:
Subscribing to docker events works fine.
I also went sourcediving and found the
logs
property on theDockerContainer
class which is aDockerLog
instance.I then tried to do the same as with docker events:
But this also times out after 5 minutes.
Your environment
Python 3.12.6 (inside Docker container from
python:3.12-alpine3.19
)aiodocker==0.23.0
aiohttp==3.9.5 (clamped because of an issue with newer versions)
The text was updated successfully, but these errors were encountered: