New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker-compose not showing logs for all containers #4837
Comments
|
Note that if I run |
Hi, I just realized it was an issue with Python not flushing its stdout. I ended up adding the following code to my
Do you know if this is a common thing to happen with Docker? |
Oh god I spent good time chasing this up :) It happened to me while using Flask, I had to hit save on the python code so the server would restart and flush the accumulated error tracebacks. Thanks a lot @bibiteix |
this issue was also happening to me with python. |
I figured out that for some error output in Python (in my case Tracebacks and "rospy.logerr") are not printed when you set |
@brean Thank you very much my man...I can stop headbutting my keyboard now. :3 |
Man , i knew it was an stdout issue. cause there was an error and i got the error. Explanation on what happend |
I'm using docker-compose for two containers and I run it using
docker-compose up -d
But when I try to see its logs with
docker-compose logs -f
it shows me only the logs of one of the containers. I tried running the other container individually and it shows the logs just fine. I appreciate any help.The text was updated successfully, but these errors were encountered: