Skip to content

dicer instance logs

Shows the guest’s console log: the kernel’s boot messages, dicer-init’s, and whatever the workload writes to the console. It is kept with the instance, so it can be read after a stop to explain one.

Use --source hypervisor for the hypervisor’s own log, which explains a guest that crashed or never got as far as booting. It is kept with the instance too, across stops and restarts, until the instance is deleted.

Usage

$ dicer instance logs NAME [flags]

Examples

$ dicer logs -f web
$ dicer logs -n 50 web
$ dicer logs --source hypervisor web

Flags

FlagDescription
-f, --followKeep writing new output until the instance stops.
--source stringWhich log to read: guest or hypervisor. Default: guest.
-n, --tail intShow only the last lines (default: all).

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).
--request-timeout durationGive 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).