summaryrefslogtreecommitdiff
path: root/libpod/container.go
diff options
context:
space:
mode:
authorMatthew Heon <mheon@redhat.com>2021-09-07 14:16:01 -0400
committerMatthew Heon <mheon@redhat.com>2021-09-07 14:16:01 -0400
commitbfcd83ecd680fccd2efeadf695a9cd2c603a997f (patch)
treeb0fe8aa8c509228c00d818cff4c13b20f2b83223 /libpod/container.go
parent536f23c0b78dd8feafee4e40b743988dbb03bfa2 (diff)
downloadpodman-bfcd83ecd680fccd2efeadf695a9cd2c603a997f.tar.gz
podman-bfcd83ecd680fccd2efeadf695a9cd2c603a997f.tar.bz2
podman-bfcd83ecd680fccd2efeadf695a9cd2c603a997f.zip
Add Checkpointed bool to Inspect
When inspecting a container, we now report whether the container was stopped by a `podman checkpoint` operation via a new bool in the State portion of inspected, `Checkpointed`. Signed-off-by: Matthew Heon <mheon@redhat.com>
Diffstat (limited to 'libpod/container.go')
-rw-r--r--libpod/container.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/libpod/container.go b/libpod/container.go
index c57250d72..0986a0d80 100644
--- a/libpod/container.go
+++ b/libpod/container.go
@@ -159,6 +159,9 @@ type ContainerState struct {
// OOMKilled indicates that the container was killed as it ran out of
// memory
OOMKilled bool `json:"oomKilled,omitempty"`
+ // Checkpointed indicates that the container was stopped by a checkpoint
+ // operation.
+ Checkpointed bool `json:"checkpointed,omitempty"`
// PID is the PID of a running container
PID int `json:"pid,omitempty"`
// ConmonPID is the PID of the container's conmon