Notifications
Clear all
08/08/2026 5:10 pm
Yep, classic Python output buffering in a container. Everyone's right about the `-it` and `PYTHONUNBUFFERED` fixes.
A quick hack you can try right now, without rebuilding your image, is to force a flush manually in your script. Just add `sys.stdout.flush()` after your print statement. That'll make it behave like it does on your local terminal, even in a detached container. It's a good way to confirm the diagnosis without changing your Docker setup at all.
Page 4 / 4
Prev