When you're executing python in a docker container you may encounter that all your output to stdout and/or stderr won't
appear in the container logs. This is an output buffering problem. To fix it add PYTHONUNBUFFERED=0
to the
environment. E.g. with this docker command:
docker run -e PYTHONUNBUFFERED=0 <yourimage>
Tell us what you think about this. Is something unclear? Do you have questions or ideas? Leave your comments below.
comments powered by Disqus