Skip to content
This is the documentation for v0.3. Read the latest.

dicer instance list

List instances.

Usage

$ dicer instance list [flags]

Also run as dicer instance ls, dicer instance ps.

Examples

$ dicer ps
$ dicer ps --filter state=running --filter label=team=web
$ dicer ps -c name,state,ip
$ dicer ps --format '{{.Name}}\t{{.IP}}'
$ dicer stop $(dicer ps -q --filter state=running)
$ dicer ps --watch

Flags

FlagDescription
-c, --columns stringsColumns to display, comma-separated and in any case (default: all).
-f, --filter stringArrayShow only instances that match, as KEY=VALUE (repeatable); keys are name, state, image, network, label.
--format stringOutput format: table, json, yaml, or a Go template, e.g. ‘{{.Name}}\t{{.State}}’. Default: table.
--interval durationHow often --watch redraws. Default: 2s.
-q, --quietOnly display names, one a line.
-w, --watchKeep the list on screen, redrawn as it changes, until Ctrl+C.
--wideShow every column, not just name, image, status, address and ports.

Global flags

FlagDescription
-D, --debugTrace every call to the daemon on stderr (or set $DICER_DEBUG).
-r, --remote stringDaemon to talk to: a remote’s name, or an address (unix:///PATH or HOST:PORT) (default $DICER_REMOTE, then the current remote, then local).
--timeout durationGive up on a call to the daemon after this long, e.g. 30s (0: never; streams such as logs -f and exec are not bounded).