Skip to content

dicer wait

Wait until an instance stops, and exit with its status

Synopsis

Waits until an instance stops, prints the status its guest ended with and exits with it: the workload’s exit code, or 0 for a guest that powered itself off.

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

dicer wait NAME [flags]

Examples

  dicer wait web
  dicer wait --timeout 30s web
  dicer start job && dicer wait job

Options

  -h, --help               help for wait
      --timeout duration   Give up after this long (0: wait indefinitely)

Options inherited from parent commands

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

SEE ALSO

  • dicer - Run virtual machines from container images