package
Version:
v0.296.0
Opens a new window with list of versions in this module.
Published: Apr 8, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func IsRunningInsideContainer(verbose bool) (isRunningInContainer bool, err error)
Returns true if running in a container like docker container.
func MustIsRunningInsideContainer(verbose bool) (isRunningInContainer bool)
Returns true if running in a container like docker container.
type Container interface {
IsRunning(verbose bool) (isRunning bool, err error)
Kill(verbose bool) (err error)
MustIsRunning(verbose bool) (isRunning bool)
MustKill(verbose bool)
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.