Skip to content

Instantly share code, notes, and snippets.

@Leen15
Forked from roylee0704/dockergrep.sh
Created February 20, 2020 15:54
Show Gist options
  • Save Leen15/ec089798dff7e0bfc3ce645d4dfdcba0 to your computer and use it in GitHub Desktop.
Save Leen15/ec089798dff7e0bfc3ce645d4dfdcba0 to your computer and use it in GitHub Desktop.
how to grep docker log
docker logs nginx 2>&1 | grep "127."
# ref: http://stackoverflow.com/questions/34724980/finding-a-string-in-docker-logs-of-container
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment