Skip to content

Commit

Permalink
fix: return nil imageinfo when retrieve fails (#680)
Browse files Browse the repository at this point in the history
  • Loading branch information
piksel committed Nov 13, 2020
1 parent 30b51c4 commit 64d48b7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/container/client.go
Expand Up @@ -122,6 +122,7 @@ func (client dockerClient) GetContainer(containerID string) (Container, error) {
imageInfo, _, err := client.api.ImageInspectWithRaw(bg, containerInfo.Image)
if err != nil {
log.Warnf("Failed to retrieve container image info: %v", err)
return Container{containerInfo: &containerInfo, imageInfo: nil}, nil
}

return Container{containerInfo: &containerInfo, imageInfo: &imageInfo}, nil
Expand Down

0 comments on commit 64d48b7

Please sign in to comment.