diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-01-14 13:37:16 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-14 13:37:16 -0500 |
commit | a1b49749af97c5a3b6256b5aa0f53897257bc838 (patch) | |
tree | 3aa0413a7fabc7faff920018b66dae54bc86120e /libpod/define | |
parent | e0211a14fc58657821a2af92d09f115470a38c36 (diff) | |
parent | d54478d8eaec9481d482942b87065af36995d39a (diff) | |
download | podman-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.go | 5 |
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" } |