dicer instance top
Lists the processes running in a running instance’s guest, as its guest agent reads them from the guest’s /proc. Kernel threads are left out; dicer-init and the agent are shown, since they run in the guest too.
PIDs are the guest’s, the ones a command run with dicer exec sees. State is
the kernel’s code for the process: R running, S sleeping, D waiting on I/O,
Z zombie, T stopped. CPUTime is the CPU time used since the process started,
and RSS the guest memory it has resident.
The column names are also the fields of a --format template. --format json
and yaml give each process’s record instead, with times and sizes as numbers.
Usage
$ dicer instance top NAME [flags]
Examples
$ dicer top web
$ dicer top web --format '{{.PID}}\t{{.Command}}'
$ dicer top web --format json
Flags
| Flag | Description |
|---|---|
-c, --columns strings | Columns of the table to display, comma-separated and in any case (default: all). |
--format string | Output format: table, json, yaml, or a Go template of the table’s columns, e.g. ‘{{.Name}}’. Default: table. |
-q, --quiet | Only display names, one a line. |
Global flags
| Flag | Description |
|---|---|
-D, --debug | Trace every call to the daemon on stderr (or set $DICER_DEBUG). |
-r, --remote string | Daemon to talk to: a remote’s name, or an address (unix:///PATH or HOST:PORT) (default $DICER_REMOTE, then the current remote, then local). |
--request-timeout duration | Give up on a single call to the daemon after this long, e.g. 30s (0: never; streams such as logs -f and exec are not bounded). |