You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+92-8
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,8 @@ Kubernetes also uses network namespaces. Kubelets creates a network namespace pe
17
17
18
18
Cool thing about namespaces is that you can switch between them. You can enter a different container's network namespace, perform some troubleshooting on its network's stack with tools that aren't even installed on that container. Additionally, `netshoot` can be used to troubleshoot the host itself by using the host's network namespace. This allows you to perform any troubleshooting without installing any new packages directly on the host or your application's package.
19
19
20
+
## Netshoot with Docker
21
+
20
22
***Container's Network Namespace:** If you're having networking issues with your application's container, you can launch `netshoot` with that container's network namespace like this:
21
23
22
24
`$ docker run -it --net container:<container_name> nicolaka/netshoot`
@@ -27,15 +29,88 @@ Cool thing about namespaces is that you can switch between them. You can enter a
27
29
28
30
***Network's Network Namespace:** If you want to troubleshoot a Docker network, you can enter the network's namespace using `nsenter`. This is explained in the `nsenter` section below.
29
31
30
-
**Kubernetes**
31
-
32
-
If you want to spin up a throw away container for debugging.
More info, examples and lots of documentation on `Swaks`[here](http://www.jetmore.org/john/code/swaks/)
604
679
605
-
## Feedback & Contribution
680
+
## Contribution
681
+
682
+
Feel free to provide to contribute networking troubleshooting tools and use-cases by opening PRs. If you would like to add any package, please follow these steps:
683
+
684
+
* In the PR, please include some rationale as to why this tool is useful to be included in netshoot.
685
+
> Note: If the functionality of the tool is already addressed by an existing tool, I might not accept the PR
686
+
* Change the Dockerfile to include the new package/tool
687
+
* If you're building the tool from source, make sure you leverage the multi-stage build process and update the `build/fetch_binaries.sh` script
688
+
* Update the README's list of included packages AND include a section on how to use the tool
689
+
* If the tool you're adding supports multi-platform, please make sure you highlight that.
690
+
606
691
607
-
Feel free to provide feedback and contribute networking troubleshooting tools and use-cases by opening PRs. If you would like to add any package, open a PR with the rationale and ensure that you update both the Dockerfile and the README with some examples on how to use it!
0 commit comments