diff --git a/src/daemon/common/cri/v1/v1_cri_helpers.cc b/src/daemon/common/cri/v1/v1_cri_helpers.cc index a34888943..ea5c8bb50 100644 --- a/src/daemon/common/cri/v1/v1_cri_helpers.cc +++ b/src/daemon/common/cri/v1/v1_cri_helpers.cc @@ -506,6 +506,9 @@ void UpdateBaseStatusFromInspect( } else { // Case 3 state = runtime::v1::CONTAINER_CREATED; } + if (inspect->state->oom_killed == true) { + reason = "OOMKilled"; + } if (inspect->state->error != nullptr) { message = inspect->state->error; }