mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fix panic when meminfo couldn't be read
Signed-off-by: Brian Goff <cpuguy83@gmail.com>
This commit is contained in:
parent
8f3be176d2
commit
5f7b1b604c
1 changed files with 1 additions and 0 deletions
|
@ -51,6 +51,7 @@ func (daemon *Daemon) SystemInfo() (*types.Info, error) {
|
|||
meminfo, err := system.ReadMemInfo()
|
||||
if err != nil {
|
||||
logrus.Errorf("Could not read system memory info: %v", err)
|
||||
meminfo = &system.MemInfo{}
|
||||
}
|
||||
|
||||
sysInfo := sysinfo.New(true)
|
||||
|
|
Loading…
Reference in a new issue