1
0

fix: load local archive

This commit is contained in:
2024-02-21 22:52:38 +00:00
parent 8812cb4293
commit 335eeb5ed5
2 changed files with 19 additions and 5 deletions

View File

@ -77,13 +77,13 @@ func Images() (diis []Image, err error) {
return
}
func Load(path string, name string) (err error) {
func Load(localpath string, name string) (err error) {
exist := Container{name: name}.Exist()
if exist && UseCache {
return
}
cmd := exec.Command(Runtime, "load", "-i", path)
cmd := exec.Command(Runtime, "load", "-i", localpath)
log.Debug().Msgf("%v", cmd)
raw, err := cmd.CombinedOutput()