<p>It seems that the solution was related to python than to docker itself.
I had to use -U parameter when I run flask .</p>
<p><a href="https://stackoverflow.com/questions/32285782/what-do-u-m-parameters-do">https://stackoverflow.com/questions/32285782/what-do-u-m-parameters-do</a></p>

CC BY-SA 4.0
2021-06-12T06:39:36.903Z
2021-06-12T06:39:36.903Z
ChiPlusPlus
<p>I have a docker container in which I am running Flask and Scrapy.
I noticed that when I run and build my container on my local machine I get logs in real time. However, on an Ubuntu instance hosted on Digital Ocean, there are almost no updates to the logs.</p>
<p>I am using of course the same parameters for build and run.</p>
<p>Here is my config:</p>
<ul>
<li>local dev environement: OS Linux Mint, docker version 20.10.6</li>
<li>cloud environment: OS Ubuntu 20, docker version 19.03.4</li>
</ul>
<p>What can I do to update the frequency of the logs?</p>

<docker><logging>
How can I get logs in real time from a docker container hosted on Digital Ocean
ChiPlusPlus
# How can I get logs in real time from a docker container hosted on Digital Ocean

(Asked by: username_0 on 2021-06-08)

I have a docker container in which I am running Flask and Scrapy.
I noticed that when I run and build my container on my local machine I get logs in real time. However, on an Ubuntu instance hosted on Digital Ocean, there are almost no updates to the logs.

I am using of course the same parameters for build and run.

Here is my config:

* local dev environement: OS Linux Mint, docker version 20.10.6
* cloud environment: OS Ubuntu 20, docker version 19.03.4

What can I do to update the frequency of the logs?

**Tags:** docker, logging


---

## 1 answers

### Answer by username_0 on 2021-06-12. Score: 1 | Accepted answer

It seems that the solution was related to python than to docker itself.
I had to use -U parameter when I run flask .

<https://stackoverflow.com/questions/32285782/what-do-u-m-parameters-do>


---

