1
0

fix: do not reimport existing containers

This commit is contained in:
dump_stack() 2024-02-21 16:15:38 +00:00
parent 8a5971379a
commit 86213c171a
Signed by: dump_stack
GPG Key ID: C9905BA72B5E02BB

View File

@ -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 {