mirror of
https://github.com/containers/podman.git
synced 2025-08-03 01:37:51 +08:00
Add container error message to ContainerState
This change aims to store an error message to the ContainerState struct with the last known error from the Start, StartAndAttach, and Stop OCI Runtime functions. The goal was to act in accordance with Docker's behavior. Fixes: #13729 Signed-off-by: Jake Correnti <jakecorrenti+github@proton.me>
This commit is contained in:
@ -152,6 +152,8 @@ type ContainerState struct {
|
||||
ExitCode int32 `json:"exitCode,omitempty"`
|
||||
// Exited is whether the container has exited
|
||||
Exited bool `json:"exited,omitempty"`
|
||||
// Error holds the last known error message during start, stop, or remove
|
||||
Error string `json:"error,omitempty"`
|
||||
// OOMKilled indicates that the container was killed as it ran out of
|
||||
// memory
|
||||
OOMKilled bool `json:"oomKilled,omitempty"`
|
||||
|
Reference in New Issue
Block a user