Skip to content

Instantly share code, notes, and snippets.

@joeperpetua
Created September 29, 2026 14:57
Show Gist options
  • Select an option

  • Save joeperpetua/3d559489a7e16aaccd789074d932c37b to your computer and use it in GitHub Desktop.

Select an option

Save joeperpetua/3d559489a7e16aaccd789074d932c37b to your computer and use it in GitHub Desktop.
Run a network grep to intercept any incoming or outgoing traffic of a running container. Good to debug/inspect real-time traffic in one of your services.
docker run --rm -it --net container:<container_id> nicolaka/netshoot ngrep -W byline -d any port <container_port>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment