mirror of https://github.com/docker/docs.git
Windows: Info no containerized check
Signed-off-by: John Howard <jhoward@microsoft.com>
This commit is contained in:
parent
8dc07af52f
commit
ab97303cae
|
@ -33,11 +33,15 @@ func (daemon *Daemon) SystemInfo() (*types.Info, error) {
|
||||||
if s, err := operatingsystem.GetOperatingSystem(); err == nil {
|
if s, err := operatingsystem.GetOperatingSystem(); err == nil {
|
||||||
operatingSystem = s
|
operatingSystem = s
|
||||||
}
|
}
|
||||||
if inContainer, err := operatingsystem.IsContainerized(); err != nil {
|
|
||||||
logrus.Errorf("Could not determine if daemon is containerized: %v", err)
|
// Don't do containerized check on Windows
|
||||||
operatingSystem += " (error determining if containerized)"
|
if runtime.GOOS != "windows" {
|
||||||
} else if inContainer {
|
if inContainer, err := operatingsystem.IsContainerized(); err != nil {
|
||||||
operatingSystem += " (containerized)"
|
logrus.Errorf("Could not determine if daemon is containerized: %v", err)
|
||||||
|
operatingSystem += " (error determining if containerized)"
|
||||||
|
} else if inContainer {
|
||||||
|
operatingSystem += " (containerized)"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
meminfo, err := system.ReadMemInfo()
|
meminfo, err := system.ReadMemInfo()
|
||||||
|
|
Loading…
Reference in New Issue