mark.dog

mark.dog


Currently working at FIFA Index and Klippa. Find me on Twitter, GitHub or LinkedIn – Mark Doggen

December 2019
M T W T F S S
« Jan    
 1
2345678
9101112131415
16171819202122
23242526272829
3031  

Categories


Python output in Docker

Make Python stop buffering it's output

markmark

When developing a Python application while using Docker, it can sometimes be useful to print some output to the console. By default however, Python buffers it’s output so you won’t get to see it until the process has been restarted. Changing this behavior is as easy as adding the following to your Docker environment:

export PYTHONUNBUFFERED=1