Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
@coggsfl
Copy link

coggsfl commented Sep 1, 2019

Works, thank you!

@stephenfrench9
Copy link

stephenfrench9 commented Sep 7, 2019

Whoa! Thanks! So docker logs to stdder, and then grep just passes everything in stderr through?

@yuripiratello
Copy link

yuripiratello commented Nov 22, 2019

thank you!

@urjiwon
Copy link

urjiwon commented Jan 3, 2020

πŸ‘

@thefat32
Copy link

thefat32 commented Feb 14, 2020

πŸ‘

@ievgen-kolomiiets
Copy link

ievgen-kolomiiets commented Feb 17, 2020

πŸ‘

@NullYing
Copy link

NullYing commented Feb 25, 2020

πŸ‘

@mikezter
Copy link

mikezter commented Mar 20, 2020

πŸ‘

@ShaunAndersonAZ
Copy link

ShaunAndersonAZ commented Apr 9, 2020

🍻

@cifc
Copy link

cifc commented Apr 15, 2020

鑢!

@skywhat
Copy link

skywhat commented Apr 21, 2020

Thank you!

@santosh-kore
Copy link

santosh-kore commented Jul 14, 2020

πŸ‘

@IgorOhrimenko
Copy link

IgorOhrimenko commented Jul 23, 2020

Бпасибо!

@gabrielponto
Copy link

gabrielponto commented Sep 23, 2020

thank you!

@alexvuta
Copy link

alexvuta commented Oct 6, 2020

Good job! Thanks!

@burakbengi
Copy link

burakbengi commented Nov 19, 2020

πŸ‘

@BriungRi
Copy link

BriungRi commented Feb 15, 2021

this is god's work πŸ™

@vdunaev
Copy link

vdunaev commented Mar 5, 2021

Thank you!

@JuanCarlosV
Copy link

JuanCarlosV commented Mar 17, 2021

great thank you.

@femoru
Copy link

femoru commented Apr 22, 2021

πŸ‘

@rashidovich
Copy link

rashidovich commented Jun 3, 2021

thank you.

@khenam
Copy link

khenam commented Jun 25, 2021

Thank you!

@drjasonharrison
Copy link

drjasonharrison commented Jul 13, 2021

docker logs nginx |& grep "127."

@adeniltonbs
Copy link

adeniltonbs commented Sep 22, 2021

Thank you!

@CollinShoop
Copy link

CollinShoop commented Jan 19, 2022

πŸ‘

@trevorditrani
Copy link

trevorditrani commented Feb 7, 2022

Thank you

@2scorpio
Copy link

2scorpio commented Mar 1, 2022

Thanks !

@cagegit
Copy link

cagegit commented Mar 9, 2022

Great!

@Vic152
Copy link

Vic152 commented Apr 1, 2022

πŸ‘

@frugan-it
Copy link

frugan-it commented May 11, 2022

πŸ‘

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