Skip to content

Instantly share code, notes, and snippets.

@roylee0704
Created December 9, 2016 08:24
Show Gist options
  • Save roylee0704/b5c8090e6cbfe1a9ae6c63062623a7cd to your computer and use it in GitHub Desktop.
Save roylee0704/b5c8090e6cbfe1a9ae6c63062623a7cd 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
@lucasgsa
Copy link

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment