2 unstable releases
Uses old Rust 2015
0.2.0 | Jan 22, 2023 |
---|---|
0.1.0 | Jan 21, 2023 |
#1639 in Command line utilities
193,105 downloads per month
Used in 288 crates
(2 directly)
3KB
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
}
}
Dependencies
~47KB