MCPcopy
hub / github.com/pocketbase/pocketbase / isMaybeRunningInDocker

Function isMaybeRunningInDocker

plugins/ghupdate/ghupdate.go:414–417  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

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
414func isMaybeRunningInDocker() bool {
415 _, err := os.Stat("/.dockerenv")
416 return err == nil
417}
418
419// note: untested
420func isMaybeRunningInNixOS() bool {

Callers 1

updateCmdMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…