package operatingsystem
import "github.com/dotcloud/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
- v28.1.1+incompatible (latest)
- Published
- Apr 18, 2025
- Platform
- linux/amd64
- Imports
- 5 packages
- Last checked
- 16 minutes ago –
Tools for package owners.