I am trying to use my python app on docker. I'm using a package called autologging
which is actually using python's logging
library.
When I use my app inside a docker container it prints out the sys prints but not the ones generated by the logger.
I have tried to define the following in the compose.yml
file and it's still not working:
stdin_open: True
tty: True
privileged: True
cap_add:
- "ALL"
environment:
- PYTHONUNBUFFERED=0
I also tried the -u
option.