How do you troubleshoot networking in a container without `ping`/`curl`?

IntermediateConceptNetworking
Answer

Attach a debug container to the target's network namespace:

docker run --rm -it --network container:web nicolaka/netshoot
docker run --rm -it --network container:web --pid container:web busybox sh

Or use nsenter -t <pid> -n from the host with host tools like ss, tcpdump.

All Docker questions Roadmap: Docker & containers

More on Networking