-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
firstly nc -c localhost 2003
is invalid syntax for netcat.
from the man page
-c string specify shell commands to exec after connect (use with caution). The string is passed to /bin/sh -c for execution. See the -e option if you don't have a working
/bin/sh (Note that POSIX-conformant system must have one).
also, on my standaard Ubuntu14.04 machine, the rest of the command fails to collect any metrics.
I think instead of using TOP, i feel that we should use docker stats
which is designed for measuring resource of containers.
This command will fetch the stats of all running containers.
docker stats $(docker ps|awk '{print $(NF)}'|grep -v NAMES|xargs echo)
Metadata
Metadata
Assignees
Labels
No labels