dm.recorder.Eventf(ref,api.EventTypeWarning,events.FailedToCreateContainer,"Failed to create docker container %q of pod %q with error: %v",container.Name,format.Pod(pod),err)
glog.V(3).Infof("pod %q container %q exists as %v",format.Pod(pod),container.Name,containerID)
// if createPodInfraContainer {
// // createPodInfraContainer == true and Container exists
// // If we're creating infra container everything will be killed anyway
// // If RestartPolicy is Always or OnFailure we restart containers that were running before we
// // killed them when restarting Infra Container.
// if pod.Spec.RestartPolicy != api.RestartPolicyNever {
// message := fmt.Sprintf("Infra Container is being recreated. %q will be restarted.", container.Name)
// glog.V(1).Info(message)
// containersToStart[index] = message
// }
// continue
// }
// At this point, the container is running and pod infra container is good.
// We will look for changes and check healthiness for the container.
containerChanged:=hash!=0&&hash!=expectedHash
ifcontainerChanged{
message:=fmt.Sprintf("pod %q container %q hash changed (%d vs %d), it will be killed and re-created.",format.Pod(pod),container.Name,hash,expectedHash)
// // TODO: (random-liu) There shouldn't be "Skipping pod" in sync result message
// message := fmt.Sprintf("Failed to setup network for pod %q using network plugins %q: %v; Skipping pod", format.Pod(pod), dm.networkPlugin.Name(), err)