Why doesn’t Python app print anything when run in a detached docker container?
Finally I found a solution to see Python output when running daemonized in Docker, thanks to @ahmetalpbalkan over at GitHub. Answering it here myself for further reference : Using unbuffered output with CMD [“python”,”-u”,”main.py”] instead of CMD [“python”,”main.py”] solves the problem; you can see the output now (both, stderr and stdout) via docker logs myapp … Read more