note: not completely reliable as it may not work on all platforms but should at least provide a warning for the most common use cases
()
| 412 | // note: not completely reliable as it may not work on all platforms |
| 413 | // but should at least provide a warning for the most common use cases |
| 414 | func isMaybeRunningInDocker() bool { |
| 415 | _, err := os.Stat("/.dockerenv") |
| 416 | return err == nil |
| 417 | } |
| 418 | |
| 419 | // note: untested |
| 420 | func isMaybeRunningInNixOS() bool { |
no outgoing calls
no test coverage detected
searching dependent graphs…