Normal grep and piping seems not to work for docker:

docker logs target_container | grep include_term

 

That is normal, because docker logs internally to the standard error out, so we have to redirect the standard error output (2) to the standard output (1):

docker logs target_container 2>&1 | grep -v exclude_term |  grep include_term

 

de_DEDeutsch