Improve kubelet logging - log the docker container image name when docker pull fails.

pull/6/head
Vishnu Kannan 2014-08-20 10:24:36 -07:00
parent f650337ec3
commit 2b61831c22
1 changed files with 1 additions and 1 deletions

View File

@ -479,7 +479,7 @@ func (kl *Kubelet) syncPod(pod *Pod, dockerContainers DockerContainers) error {
glog.Infof("Container doesn't exist, creating %#v", container)
if err := kl.dockerPuller.Pull(container.Image); err != nil {
glog.Errorf("Failed to pull image: %v skipping pod %s container %s.", err, podFullName, container.Name)
glog.Errorf("Failed to pull image %s: %v skipping pod %s container %s.", container.Image, err, podFullName, container.Name)
continue
}
containerID, err := kl.runContainer(pod, &container, podVolumes, "container:"+string(netID))