Back to Rkt

rkt status

Documentation/subcommands/status.md

1.30.01.3 KB
Original Source

rkt status

Given a pod UUID, you can get the exit status of its apps. Note that the apps are prefixed by app-.

$ rkt status 66ceb509
state=exited
created=2016-01-26 14:23:34.631 +0100 CET
started=2016-01-26 14:23:34.744 +0100 CET
pid=16964
exited=true
app-redis=0
app-etcd=0

Note that pid may not be available shortly after rkt run, or rkt run-prepared, even when state=running.

The --wait flags below can be used to wait for a Pod to be running with its pid captured.

If the pod is still running, you can wait for it to finish and then get the status with rkt status --wait UUID. To wait for the pod to become ready, execute rkt status --wait-ready. Both options also accept a duration. To wait up to 10 seconds until the pod is finished, execute rkt status --wait=10s UUID.

Options

FlagDefaultOptionsDescription
--waitfalsetrue or false or durationToggle waiting for the pod to finish.
--wait-readyfalsetrue or false or durationToggle waiting until the pod is ready.
--uuid-file""UUID fileUUID of the pod.

Global options

See the table with global options in general commands documentation.