fix: do not fail if no prebuilt container
This commit is contained in:
parent
d317769a64
commit
059ca6dc93
@ -208,11 +208,12 @@ func (cmd *KernelCmd) Generate(g *Globals, km artifact.Target) (err error) {
|
|||||||
|
|
||||||
if cmd.ContainerCache {
|
if cmd.ContainerCache {
|
||||||
path := cache.ContainerURL(c.Name())
|
path := cache.ContainerURL(c.Name())
|
||||||
log.Debug().Msgf("import container %v from %v",
|
|
||||||
c.Name(), path)
|
|
||||||
err = container.Import(path, c.Name())
|
err = container.Import(path, c.Name())
|
||||||
if err != nil || cmd.shutdown {
|
if err != nil {
|
||||||
return
|
err = nil
|
||||||
|
} else {
|
||||||
|
log.Info().Msgf("container %s -> %s",
|
||||||
|
path, c.Name())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user