Alpine-based image with network tools and a Go HTTP echo server.
653
This Docker image is based on Alpine Linux and includes a comprehensive suite of network troubleshooting and debugging tools. Additionally, it hosts a small Go program that echoes back HTTP request information in JSON format, ideal for debugging and inspecting incoming requests.
ip, netstat, route, nmap, nc, socat, etc.)dig, nslookup)nethogs, iftop, mtr, traceroute, tcpdump)jq for JSON processingTo run the container on port 8080, use the following command:
docker run -d --rm --name nshoot -p 8080:80 rbehzadan/nshoot
Once running, you can execute commands within the container to debug network issues.
$ docker exec -it nshoot sh
For example, to access the Go echo server:
$ curl -s localhost:8080 | jq
{
"url": "/",
"method": "GET",
"query_params": {},
"headers": {
"Accept": [
"*/*"
],
"User-Agent": [
"curl/8.7.1"
]
},
"cookies": {},
"body": "",
"user_agent": "curl/8.7.1",
"remote_addr": "172.17.0.1:43652",
"host": "localhost:8080",
"referer": "",
"content_length": 0,
"content_type": "",
"server_time": "2024-04-25T22:46:47Z",
"server_timestamp_utc": 1714085207,
"onewaytrip_ms": -1,
"roundtrip_ms": -1,
"server_hostname": "8fa30ff94798",
"server_local_ip": "172.17.0.2",
"server_version": "1.0.0"
}
This project is licensed under the MIT License.
Content type
Image
Digest
sha256:4b60dadf2…
Size
22.1 MB
Last updated
about 2 years ago
docker pull rbehzadan/nshoot