Skip to content

Instantly share code, notes, and snippets.

@evertonmatos
Forked from roylee0704/dockergrep.sh
Created April 14, 2023 23:01
Show Gist options
  • Select an option

  • Save evertonmatos/b3dcd8212b0912bd67e2b3d98b326bc4 to your computer and use it in GitHub Desktop.

Select an option

Save evertonmatos/b3dcd8212b0912bd67e2b3d98b326bc4 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