# Network Troubleshooting Using Netshoot
For network troubleshooting you can use the [netshoot](https://github.com/nicolaka/netshoot) Docker container.
You can connect it via another container, allowing you to perform diagnostics from the context of that container itself:
`docker run -it --rm --network container:<CONTAINER NAME> nicolaka/netshoot /bin/bash`
Alternatively, you can connect it directly to the host, allowing you to perform diagnostics from the perspective of the host:
`docker run -it --rm --network host nicolaka/netshoot /bin/bash`