|
|
@ -122,6 +122,7 @@ func (client dockerClient) GetContainer(containerID string) (Container, error) {
|
|
|
|
imageInfo, _, err := client.api.ImageInspectWithRaw(bg, containerInfo.Image)
|
|
|
|
imageInfo, _, err := client.api.ImageInspectWithRaw(bg, containerInfo.Image)
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
log.Warnf("Failed to retrieve container image info: %v", err)
|
|
|
|
log.Warnf("Failed to retrieve container image info: %v", err)
|
|
|
|
|
|
|
|
return Container{containerInfo: &containerInfo, imageInfo: nil}, nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return Container{containerInfo: &containerInfo, imageInfo: &imageInfo}, nil
|
|
|
|
return Container{containerInfo: &containerInfo, imageInfo: &imageInfo}, nil
|
|
|
|