Handle empty container name in dockershim.

This commit is contained in:
Random-Liu
2016-10-31 14:10:42 -07:00
parent e6b2517feb
commit ecd1044200
3 changed files with 8 additions and 2 deletions

View File

@@ -191,7 +191,7 @@ func (ds *dockerService) ListPodSandbox(filter *runtimeApi.PodSandboxFilter) ([]
c := containers[i]
converted, err := toRuntimeAPISandbox(&c)
if err != nil {
glog.V(5).Infof("Unable to convert docker to runtime API sandbox: %v", err)
glog.V(4).Infof("Unable to convert docker to runtime API sandbox: %v", err)
continue
}
if filterOutReadySandboxes && converted.GetState() == runtimeApi.PodSandBoxState_READY {