Python print not displayed in docker console

Problem: Python print function not printing to display when running inside docker

Reason:  The python output is buffered.

Solution: Run python (in the docker file) with un-buffered flag -u

Kj
Kj [/.] Sreekumar programs computers as a hobby and profession. Into programming from his school days, Sree uses Codemarvels to key in facts and fixes he finds interesting while working on different projects. Some of the articles here give away a few shades of his philosophical leanings too.

Leave a Comment

Your email address will not be published. Required fields are marked *