mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-12-06 23:40:37 +00:00
A client like `pinata diagnose` can do the equivalent of: nc 192.168.64.2 62374 > foo.tar and find `foo.tar` contains - the output of `/usr/bin/diagnostics` - `iptables -L` - `netstat -an` - `ps uax` - `docker ps` - `dig docker.com` - `wget http://docker.com` This will allow us to diagnose various in-VM faults, without having to ask the user to access the console and run commands. Signed-off-by: David Scott <dave.scott@docker.com>
8 lines
189 B
Bash
Executable File
8 lines
189 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Allow clients (e.g. pinata diagnose) to download diagnostic data
|
|
|
|
while /bin/true; do
|
|
nc -l -p 62374 -e /usr/bin/diagnostics-download 2>> /var/log/diagnostics-server.log
|
|
done
|