Skip to main content

parse_container_exit_code

Function parse_container_exit_code 

Source
pub fn parse_container_exit_code(status: &str) -> Option<i32>
Expand description

Extract the integer in Exited (N) from a docker Status string. Returns None when the prefix is absent or the captured slice does not parse as an integer. Podman emits an empty status; callers should fall back to inspect-cache exit code in that case.