Documentation
¶
Overview ¶
Package container provides methods for checking container engine info
Index ¶
Examples ¶
Constants ¶
View Source
const ( DOCKER = "docker" // Docker (Moby) PODMAN = "podman" // Podman LXC = "lxc" // LXC YANDEX = "yandex" // Yandex Serverless )
Variables ¶
This section is empty.
Functions ¶
func GetEngine ¶
func GetEngine() string
GetEngine returns container engine name if used
Example ¶
Output:
func IsContainer ¶ added in v12.108.0
func IsContainer() bool
IsContainer returns true if we are inside container
Example ¶
Output:
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.