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

Functions

func GetOperatingSystem

func GetOperatingSystem() (string, error)

GetOperatingSystem gets the name of the current operating system.

func GetOperatingSystemVersion

func GetOperatingSystemVersion() (string, error)

GetOperatingSystemVersion gets the version of the current operating system, as a string.

func IsContainerized

func IsContainerized() (bool, error)

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.