mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-20 01:29:07 +00:00
Don't exit after pulling init or kernel image
Due to a missing else the tool would previously terminate with an error message showing that the kernel or init image didn't exist, even if it was pulled successfully. Invoking the tool again would continue to the next image. Signed-off-by: Magnus Skjegstad <magnus@skjegstad.com>
This commit is contained in:
parent
86b4d1cdb2
commit
09c2904994
@ -114,9 +114,9 @@ func imageTar(image, prefix string, tw *tar.Writer, trust bool, pull bool) error
|
||||
if err != nil {
|
||||
return fmt.Errorf("Failed to docker create image %s: %v", image, err)
|
||||
}
|
||||
} else {
|
||||
return fmt.Errorf("Failed to create docker image %s: %v", image, err)
|
||||
}
|
||||
return fmt.Errorf("Failed to create docker image %s: %v", image, err)
|
||||
|
||||
}
|
||||
contents, err := dockerExport(container)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user