Crate is_container

source ·
Expand description

Check if the process is running inside a container.

Examples

use is_container::is_container;

if is_container() {
    println!("Running inside a container");
}

Inspired

Functions

  • The main function provided by this crate. See crate documentation for more information.