returnfmt.Errorf("cAdvisor requires docker version %v or above but we have found version %v reported as \"%v\"",expected_version,version,version_string)
returnfmt.Errorf("cAdvisor requires docker version %v or above but we have found version %v reported as \"%v\"",expected_version,dockerVersion,version_string)
}
}
}
}
}
}
// Check that the libcontainer execdriver is used.
information,err:=client.Info()
information,err:=DockerInfo()
iferr!=nil{
iferr!=nil{
returnfmt.Errorf("failed to detect Docker info: %v",err)
returnfmt.Errorf("failed to detect Docker info: %v",err)
}
}
execDriver,ok:=information["ExecutionDriver"]
if!ok||!strings.HasPrefix(execDriver,"native"){
// Check that the libcontainer execdriver is used.
execDriver:=information.Get("ExecutionDriver")
if!strings.HasPrefix(execDriver,"native"){
returnfmt.Errorf("docker found, but not using native exec driver")
returnfmt.Errorf("docker found, but not using native exec driver")
}
}
sd,_:=information["Driver"]
sd:=information.Get("Driver")
ifsd==""{
returnfmt.Errorf("failed to find docker storage driver")