31 lines
390 B
Markdown
Executable File
31 lines
390 B
Markdown
Executable File
---
|
|
author: Alvie Rahman
|
|
date: \today
|
|
title: Python
|
|
tags:
|
|
- docker
|
|
- python
|
|
- programming
|
|
- io
|
|
uuid: cd5c50f9-66f4-4a3b-b89a-04a20ecd642b
|
|
---
|
|
|
|
# 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).
|
|
|