Launch netshoot in Docker
masterYou 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