Function is_docker::is_docker

source ·
pub fn is_docker() -> bool
Examples found in repository?
examples/main.rs (line 4)
3
4
5
6
7
8
9
fn main() {
    if is_docker::is_docker() {
        println!("Currently in a Docker Container!")
    } else {
        println!("Currently NOT in Docker Container!")
    }
}