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 logs <container id> | grep <some value> doesn't work #9508
Comments
@billumina I will appreciate if you'd provide simple example, because for me grep is working |
Docker logs is not working how I would expect and a google search brought me to this ticket. Here's what is happening
|
@simonavril This is because your log entry is for stderr, piping works with stdout. docker logs 2>&1 | grep hello
# OR
docker logs 2>/dev/null | grep hello |
@cpuguy83 Thanks a lot for that. |
try docker logs -f --tail 0 container |
Why so many thumbs down?
This does not work on my app.
This DOES work |
docker logs -f doesn't cut it with a busy log file. :)
The text was updated successfully, but these errors were encountered: