github.com/rkt/rkt@v1.30.1-0.20200224141603-171c416fac02/Documentation/subcommands/status.md (about)

     1  # rkt status
     2  
     3  Given a pod UUID, you can get the exit status of its apps.
     4  Note that the apps are prefixed by `app-`.
     5  
     6  ```
     7  $ rkt status 66ceb509
     8  state=exited
     9  created=2016-01-26 14:23:34.631 +0100 CET
    10  started=2016-01-26 14:23:34.744 +0100 CET
    11  pid=16964
    12  exited=true
    13  app-redis=0
    14  app-etcd=0
    15  ```
    16  
    17  Note that `pid` may not be available shortly after `rkt run`, or `rkt run-prepared`, even when `state=running`.
    18  
    19  The `--wait` flags below can be used to wait for a Pod to be running with its pid captured.
    20  
    21  If the pod is still running, you can wait for it to finish and then get the status with `rkt status --wait UUID`.
    22  To wait for the pod to become ready, execute `rkt status --wait-ready`.
    23  Both options also accept a duration. To wait up to 10 seconds until the pod is finished, execute `rkt status --wait=10s UUID`.
    24  
    25  ## Options
    26  
    27  | Flag | Default | Options | Description |
    28  | --- | --- | --- | --- |
    29  | `--wait` |  `false` | `true` or `false` or duration | Toggle waiting for the pod to finish. |
    30  | `--wait-ready` |  `false` | `true` or `false` or duration | Toggle waiting until the pod is ready. |
    31  | `--uuid-file` | "" | UUID file | UUID of the pod. |
    32  
    33  ## Global options
    34  
    35  See the table with [global options in general commands documentation][global-options].
    36  
    37  
    38  [global-options]: ../commands.md#global-options