netshoot Documentation

repository·master·Indexed 27 days ago

https://github.com/nicolaka/netshoot

A Swiss-army container for Docker and Kubernetes network troubleshooting, pre-loaded with networking, DNS, performance, and security tools. Supports debugging existing containers or host machines by sharing network namespaces.

Tokens
196
Snippets
1
Records
1
Agent score
45%

What's inside netshoot

  1. Launch netshoot in Docker

    master

    You can use netshoot to debug existing containers or the host machine by sharing their network namespaces.

    Share a running container's network namespace: Use the --net container:<container_name> flag to enter the network stack of a specific container.

    Use the host's network namespace: Use the --net host flag to access the host's network interfaces and routes.

    # Share a running container's network namespace
    docker run -it --net container:<container_name> nicolaka/netshoot
    
    # Use the host's network namespace
    docker run -it --net host nicolaka/netshoot