summaryrefslogtreecommitdiff
path: root/libpod/define
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-01-14 13:37:16 -0500
committerGitHub <noreply@github.com>2021-01-14 13:37:16 -0500
commita1b49749af97c5a3b6256b5aa0f53897257bc838 (patch)
tree3aa0413a7fabc7faff920018b66dae54bc86120e /libpod/define
parente0211a14fc58657821a2af92d09f115470a38c36 (diff)
parentd54478d8eaec9481d482942b87065af36995d39a (diff)
downloadpodman-a1b49749af97c5a3b6256b5aa0f53897257bc838.tar.gz
podman-a1b49749af97c5a3b6256b5aa0f53897257bc838.tar.bz2
podman-a1b49749af97c5a3b6256b5aa0f53897257bc838.zip
Merge pull request #8906 from vrothberg/fix-8501
container stop: release lock before calling the runtime
Diffstat (limited to 'libpod/define')
-rw-r--r--libpod/define/containerstate.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/libpod/define/containerstate.go b/libpod/define/containerstate.go
index 825e77387..5d2bc9099 100644
--- a/libpod/define/containerstate.go
+++ b/libpod/define/containerstate.go
@@ -28,6 +28,9 @@ const (
// ContainerStateRemoving indicates the container is in the process of
// being removed.
ContainerStateRemoving ContainerStatus = iota
+ // ContainerStateStopping indicates the container is in the process of
+ // being stopped.
+ ContainerStateStopping ContainerStatus = iota
)
// ContainerStatus returns a string representation for users
@@ -50,6 +53,8 @@ func (t ContainerStatus) String() string {
return "exited"
case ContainerStateRemoving:
return "removing"
+ case ContainerStateStopping:
+ return "stopping"
}
return "bad state"
}