pub struct ContainerWaitDockerResponse {
pub status_code: i64,
pub error: Option<ContainerWaitDockerError>,
}Expand description
Docker-shaped wait response returned by
POST /api/v1/containers/{id}/wait.
Mirrors Docker Engine’s /containers/{id}/wait body 1:1: a
StatusCode field plus an optional Error envelope. Used by the
zlayer-docker compatibility shim and any SDK callers that consume
the Docker shape directly. The richer
ContainerWaitResponse (returned by the legacy GET endpoint) is
preserved for clients that need the reason / signal / finished_at
classification fields.
Fields§
§status_code: i64Container exit code (0 = success). When killed by signal N,
this is typically 128 + N, matching Docker’s convention.
error: Option<ContainerWaitDockerError>Optional error envelope surfaced when the wait itself failed
(e.g. the container was removed before reaching not-running
when condition=not-running was requested). Absent on a normal
exit.