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 
 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 
 grep is followed by a parameter -- line-buffered  
 grep  you need to add a parameter -- line-buffered  before Filter continuous stream.  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