Skip to content
/ is-docker Public template

Checks if the process is running inside a Docker container. Rust implementation of `sindresorhus/is-docker`

License

Notifications You must be signed in to change notification settings

TheLarkInn/is-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

is-docker

Checks if the process is running inside a Docker container. Rust implementation of sindresorhus/is-docker

Usage

$> cargo add is-docker

main.rs

use is_docker::is_docker

fn main() {
    if is_docker() {
        // Do some docker related stuff 🎇
    } else {
        // Do some different things! <3
    }
}

About

Checks if the process is running inside a Docker container. Rust implementation of `sindresorhus/is-docker`

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages