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

dicer wait

Waits until each instance stops and prints the status its guest ended with, a line for each: the workload’s exit code, 0 for a guest that powered itself off, or 125 for one that ended without saying how.

An instance that has already stopped is not waited for; its last status is reported at once, even if --rm has deleted it since. An instance its restart policy starts again has not stopped, so the wait goes on.

As with docker wait, the statuses are printed, not exited with: the command fails only for an instance it cannot wait for.

Usage

$ dicer wait NAME... [flags]

Examples

$ dicer wait web
$ dicer wait job1 job2
$ dicer wait --timeout 30s web
$ status=$(dicer wait job)

Flags

FlagDescription
--timeout durationGive up after this long (0: wait indefinitely).

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).