Overview
IncidentFox provides 15 Docker tools for comprehensive container debugging, including logs, stats, exec, and inspection capabilities.Tools Available
| Tool | Description |
|---|---|
docker_ps | List running containers |
docker_logs | Fetch container logs |
docker_inspect | Inspect container configuration |
docker_stats | Get container resource usage |
docker_top | Show running processes in container |
docker_events | Stream Docker events |
docker_diff | Show filesystem changes in container |
docker_exec | Execute command in running container |
docker_images | List Docker images |
docker_networks | List Docker networks |
docker_volumes | List Docker volumes |
docker_compose_ps | List Compose services |
docker_compose_logs | Get Compose service logs |
docker_health | Check container health status |
docker_port | Show port mappings |
Configuration
Local Docker Socket
Remote Docker API
Example Queries
Check Container Status
Get Container Logs
Check Resource Usage
Execute Diagnostic Command
Use Cases
Container Health Investigation
When a container is unhealthy:- Check container status with
docker_ps - Review logs with
docker_logs - Inspect configuration with
docker_inspect - Check resource usage with
docker_stats
Network Debugging
For connectivity issues:- List networks with
docker_networks - Inspect container network settings
- Use
docker_execto run network diagnostics
Resource Exhaustion
When containers are slow or crashing:- Check
docker_statsfor CPU/memory usage - Review
docker_eventsfor OOM kills - Analyze
docker_difffor unexpected file changes
Security Considerations
Principle of Least Privilege
| Tool | Risk Level | Recommendation |
|---|---|---|
docker_ps, docker_logs | Low | Enable by default |
docker_stats, docker_inspect | Low | Enable by default |
docker_exec | High | Require approval workflow |
docker_events | Medium | Enable with monitoring |
Approval Workflow for Exec
Troubleshooting
Permission Denied
- Add the IncidentFox service user to the
dockergroup - Use TCP API with proper authentication
- Use sudo with proper configuration
Container Not Found
Ensure container names or IDs are correct. Usedocker_ps to list available containers.
Next Steps
Kubernetes
For orchestrated containers
Log Analysis
Advanced log analysis tools

