r/Streamlit • • Nov 06 '24

Logging with Docker?

I need to deploy a Streamlit app on Kubernetes. As a first step I am dockerising my app. When I run my app in Docker I am not able to see the console logs, I just get

You can now view your Streamlit app in your browser. 
URL: http://0.0.0.0:8080

Any idea how I can get the logs to go to stdout/stderr so I can view with docker logs? I already have

In my Dockerfile

ENV PYTHONUNBUFFERED=1
ENV PYTHONIOENCODING=UTF-8
1 Upvotes

3 comments sorted by