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

Functions

func GetOperatingSystem

func GetOperatingSystem() (string, error)

GetOperatingSystem gets the name of the current operating system.

func IsContainerized

func IsContainerized() (bool, error)

IsContainerized returns true if we are running inside a container.

Source Files

operatingsystem_linux.go

Version
v1.12.3
Published
Oct 26, 2016
Platform
linux/amd64
Imports
7 packages
Last checked
10 minutes ago

Tools for package owners.