26 lines
346 B
Markdown
26 lines
346 B
Markdown
|
---
|
||
|
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).
|
||
|
|