nimmis / docker-alpine

Minimal Alpine with working init process
20 stars 6 forks source link

docker logs and /var/log/startup.log #2

Closed JuustoMestari closed 4 years ago

JuustoMestari commented 6 years ago

Hello,

I have created a supervisor conf file that executes a python script. I have added _stdoutlogfile=/var/log/startup.log in that configuration. The python script runs fine and logs correctly in /var/log/startup.log but I cannot see the log when I run docker logs [container_name]. Do you know what might be the issue?

Thanks !

nimmis commented 4 years ago

Docker logs only show text that you are printing to the console, so instead of sending it to a file echo it to the standard out