File: main.rs

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 (9 lines) | stat: -rw-r--r-- 197 bytes parent folder | download
1
2
3
4
5
6
7
8
9
extern crate is_docker;

fn main() {
    if is_docker::is_docker() {
        println!("Currently in a Docker Container!")
    } else {
        println!("Currently NOT in Docker Container!")
    }
}