Skip to main content

parse_runtime

Function parse_runtime 

Source
pub fn parse_runtime(output: &str) -> Option<ContainerRuntime>
Expand description

Detect runtime from command output by matching the LAST non-empty trimmed line. Only “docker” or “podman” are accepted. MOTD-resilient. Currently unused (sentinel-based detection handles this inline) but kept as a public utility for potential future two-step detection paths.