docker: github.com/docker/docker/pkg/parsers/operatingsystem Index | Files

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

Package Files

operatingsystem_linux.go

func GetOperatingSystem Uses

func GetOperatingSystem() (string, error)

GetOperatingSystem gets the name of the current operating system.

func GetOperatingSystemVersion Uses

func GetOperatingSystemVersion() (string, error)

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

func IsContainerized Uses

func IsContainerized() (bool, error)

IsContainerized returns true if we are running inside a container.

Package operatingsystem imports 6 packages (graph) and is imported by 830 packages. Updated 2020-07-22. Refresh now. Tools for package owners.