Skip to main content

parse_container_inspect

Function parse_container_inspect 

Source
pub fn parse_container_inspect(output: &str) -> Result<ContainerInspect, String>
Expand description

Parse docker inspect <id> stdout into ContainerInspect. The command always returns a JSON array; we take the first element. Missing fields degrade to defaults rather than fail so a partial response still renders something useful.