image_pull: fix image resolver
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
parent
3078f59068
commit
dd571523ec
24 changed files with 3748 additions and 235 deletions
|
@ -848,8 +848,7 @@ func (s *Server) createSandboxContainer(ctx context.Context, containerID string,
|
|||
}
|
||||
images, err := s.StorageImageServer().ResolveNames(image)
|
||||
if err != nil {
|
||||
// This means we got an image ID
|
||||
if strings.Contains(err.Error(), "cannot specify 64-byte hexadecimal strings") {
|
||||
if err == storage.ErrCannotParseImageID {
|
||||
images = append(images, image)
|
||||
} else {
|
||||
return nil, err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue