containerenv

package
v0.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL