Documentation
¶
Overview ¶
Package containerenv detects whether the current process is running inside a container (Docker, Podman, or a Kubernetes pod). The miren server uses this to advertise to miren.cloud that it's containerized, since a containerized server is effectively never reachable directly from the internet and must keep Miren Anywhere (POP routing) on.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InContainer ¶
func InContainer() bool
InContainer reports whether the process is running inside a container. The result is computed once and cached — it can't change over the process lifetime.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.