docker

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsCGroup2UnifiedMode

func IsCGroup2UnifiedMode() bool

func IsRunningInDocker

func IsRunningInDocker() bool

IsRunningInDocker checks if the process is running in a docker container.

Types

type ContainerInfo

type ContainerInfo struct {
	Name      string
	ImageName string
}

func FindDockerContainerInfo

func FindDockerContainerInfo(dockerEndpoint string) (ContainerInfo, error)

FindDockerContainerInfo find information (name or if not possible the ID, image-name) of the container that is used to run this process.

Jump to

Keyboard shortcuts

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