diff options
author | Matthew Heon <mheon@redhat.com> | 2021-09-07 14:16:01 -0400 |
---|---|---|
committer | Matthew Heon <mheon@redhat.com> | 2021-09-07 14:16:01 -0400 |
commit | bfcd83ecd680fccd2efeadf695a9cd2c603a997f (patch) | |
tree | b0fe8aa8c509228c00d818cff4c13b20f2b83223 /libpod/container_internal_linux.go | |
parent | 536f23c0b78dd8feafee4e40b743988dbb03bfa2 (diff) | |
download | podman-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_internal_linux.go')
-rw-r--r-- | libpod/container_internal_linux.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libpod/container_internal_linux.go b/libpod/container_internal_linux.go index cafa3c642..eabe8efd2 100644 --- a/libpod/container_internal_linux.go +++ b/libpod/container_internal_linux.go @@ -1146,6 +1146,7 @@ func (c *Container) checkpoint(ctx context.Context, options ContainerCheckpointO if !options.KeepRunning && !options.PreCheckPoint { c.state.State = define.ContainerStateStopped + c.state.Checkpointed = true // Cleanup Storage and Network if err := c.cleanup(ctx); err != nil { |