File: README.md

package info (click to toggle)
rust-is-docker 0.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 104 kB
  • sloc: makefile: 4
file content (20 lines) | stat: -rw-r--r-- 346 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# 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_
```rust

use is_docker::is_docker

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