From 512282e379d8ee701aa4d721f372cbfcc9a14d61 Mon Sep 17 00:00:00 2001 From: Alvie Rahman Date: Fri, 20 Aug 2021 13:21:38 +0100 Subject: [PATCH] add python notes --- python.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 python.md diff --git a/python.md b/python.md new file mode 100755 index 0000000..9e8b24f --- /dev/null +++ b/python.md @@ -0,0 +1,25 @@ +--- +author: Alvie Rahman +date: \today +title: Python +tags: [ docker, python, programming, io ] +--- + +# Issues + +## No log output when running in docker + +Change line beginning with `CMD` from: + +```Dockerfile +CMD [ "python", "app.py" ] +``` + +to: + +```Dockerfile +CMD [ "python", "-u", "app.py" ] +``` + +This disabled output buffering (stdout and stderr). +