Ping Check
Test connectivity to hosts within the Docker network.
Ping Host
# Check reachability
ping -c 4 hostname
# Quick check with timeout
ping -c 1 -W 2 hostname
Tips for AI Agents
- Use
-cto limit the number of pings. - Use
-Wfor timeout in seconds. - Ping may be blocked by firewalls — use
ncorcurlas alternatives.