Grep cannot Filter persistent log

I use docker logs-f container_name | grep xxx to have the effect of Filter? Then I tried other continuously increasing log files and found that grep had no effect

.
Mar.31,2021

grep is followed by a parameter -- line-buffered


  1. grep you need to add a parameter -- line-buffered before Filter continuous stream.
  2. docker logs use grep in some environments, you need to add 2 > & 1 to have an effect, docker logs xx-f 2 > & 1 | grep-- line-buffered xxx

refer to
docker logs < container id > | grep < some value > doesn't work

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1ea890b-4f3b7.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1ea890b-4f3b7.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?