package operatingsystem
import "github.com/docker/docker/pkg/parsers/operatingsystem"
Package operatingsystem provides helper function to get the operating system name for different platforms.
Index ¶
- func GetOperatingSystem() (string, error)
- func GetOperatingSystemVersion() (string, error)
- func IsContainerized() (bool, error)
Functions ¶
func GetOperatingSystem ¶
GetOperatingSystem gets the name of the current operating system.
func GetOperatingSystemVersion ¶
GetOperatingSystemVersion gets the version of the current operating system, as a string.
func IsContainerized ¶
IsContainerized returns true if we are running inside a container.
Source Files ¶
operatingsystem_linux.go windows_os_string.go
- Version
- v27.0.0-rc.2+incompatible
- Published
- Jun 17, 2024
- Platform
- linux/amd64
- Imports
- 5 packages
- Last checked
- 22 minutes ago –
Tools for package owners.