fix: do not reimport existing containers
This commit is contained in:
parent
8a5971379a
commit
86213c171a
@ -206,7 +206,7 @@ func (cmd *KernelCmd) Generate(g *Globals, km artifact.Target) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if cmd.ContainerCache {
|
if !c.Exist() && cmd.ContainerCache {
|
||||||
path := cache.ContainerURL(c.Name())
|
path := cache.ContainerURL(c.Name())
|
||||||
err = container.Import(path, c.Name())
|
err = container.Import(path, c.Name())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user