Skip to main content

in_container

Function in_container 

Source
fn in_container() -> bool
Expand description

Whether this doctor runs inside a container, for deciding what it may start. The hint in the environment (self_keys::in_container) is a word, not a fact about this system, so it is not enough for that. It also takes the fact: a Linux system with the container runtime’s own marker at the root of the filesystem.