Skip to content

Instantly share code, notes, and snippets.

@ttys3
Forked from roylee0704/dockergrep.sh
Created September 22, 2021 18:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ttys3/1764a499dc730d084cfc1fccd7d16e51 to your computer and use it in GitHub Desktop.
Save ttys3/1764a499dc730d084cfc1fccd7d16e51 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