From 92371d63827465bbb723af822e4d6cd1da1a07f3 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Wed, 28 Apr 2021 14:32:38 -0400 Subject: [PATCH] Docker returns 'die' status rather then 'died' status In order to be more compatible with Docker, we should return a container die status rather then a "container died", Too late to change this for Podman. Partially fixes: https://github.com/containers/podman/issues/10168 [NO TESTS NEEDED] No easy way to test this. Signed-off-by: Daniel J Walsh --- pkg/api/handlers/compat/events.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/api/handlers/compat/events.go b/pkg/api/handlers/compat/events.go index dd0a9e7a92..405e616c58 100644 --- a/pkg/api/handlers/compat/events.go +++ b/pkg/api/handlers/compat/events.go @@ -89,6 +89,10 @@ func GetEvents(w http.ResponseWriter, r *http.Request) { } e := entities.ConvertToEntitiesEvent(*evt) + if !utils.IsLibpodRequest(r) && e.Status == "died" { + e.Status = "die" + } + if err := coder.Encode(e); err != nil { logrus.Errorf("unable to write json: %q", err) }