package operatingsystem
import "github.com/dotcloud/docker/pkg/parsers/operatingsystem"
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. No-op on FreeBSD and Darwin, always returns false.
Source Files ¶
operatingsystem_unix.go windows_os_string.go
- Version
- v26.0.1+incompatible
- Published
- Apr 10, 2024
- Platform
- darwin/amd64
- Imports
- 4 packages
- Last checked
- 23 minutes ago –
Tools for package owners.