/
View dependency graph
Depends on
- debhelper (debhelper)
- dh-cargo (dh-cargo)
- rust-once-cell (librust-once-cell-1+default-dev)
- cargo, libstd-rust-dev, rustc
Used by
README (full)
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
}
}
| dir | .github/ |
| dir | debian/ |
| dir | examples/ |
| dir | src/ |
| file | .cargo_vcs_info.json |
| file | .gitignore |
| file | Cargo.lock |
| file | Cargo.toml |
| file | Cargo.toml.orig |
| file | LICENSE |
| file | README.md |