Permalink
Browse files

Fix the image cache delete

  • Loading branch information...
kairen authored and dlorenc committed Dec 13, 2017
1 parent 8f91c37 commit 50dcda4ba9345303409ebd7bc132758ac76302d7
Showing with 3 additions and 1 deletion.
  1. +3 −1 pkg/minikube/machine/cache_images.go
@@ -17,14 +17,15 @@ limitations under the License.
package machine
import (
"golang.org/x/sync/errgroup"
"io/ioutil"
"os"
"os/exec"
"path/filepath"
"runtime"
"strings"
"golang.org/x/sync/errgroup"
"k8s.io/minikube/pkg/minikube/assets"
"k8s.io/minikube/pkg/minikube/bootstrapper"
"k8s.io/minikube/pkg/minikube/config"
@@ -223,6 +224,7 @@ func LoadFromCacheBlocking(cmd bootstrapper.CommandRunner, src string) error {
func DeleteFromImageCacheDir(images []string) error {
for _, image := range images {
path := filepath.Join(constants.ImageCacheDir, image)
path = sanitizeCacheDir(path)
glog.Infoln("Deleting image in cache at ", path)
if err := os.Remove(path); err != nil {
return err

0 comments on commit 50dcda4

Please sign in to comment.