Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrentContainerID ¶
CurrentContainerID returns the current running container ID.
func IsRunningInDocker ¶ added in v0.7.2
func IsRunningInDocker() bool
IsRunningInDocker reports whether the process is inside a container, by the presence of /.dockerenv. It is a hint the runtime provides, not a guarantee: a container built without that file reads as a host.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.