10 lines
191 B
Bash
10 lines
191 B
Bash
#!/bin/bash
|
|
while true; do
|
|
nc -l 127.0.0.1 9999 <<EOF
|
|
HTTP/1.1 200 OK
|
|
Content-Type: application/json
|
|
|
|
$(docker ps -a --format '{{.Names}}|{{.ID}}|{{.Image}}|{{.Status}}|{{.Ports}}')
|
|
EOF
|
|
done
|