From a615835d8000fcb50ec232276c43e2b7dfbfbb4b Mon Sep 17 00:00:00 2001 From: Alexander O'Mara Date: Fri, 30 Aug 2024 00:31:18 -0400 Subject: [PATCH] docker: avoid error where the cache docker-certs directory does not exist, fixes #1128 (#1129) --- environment/vm/lima/certs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/environment/vm/lima/certs.go b/environment/vm/lima/certs.go index 96d629e23..17c77bf49 100644 --- a/environment/vm/lima/certs.go +++ b/environment/vm/lima/certs.go @@ -23,7 +23,7 @@ func (l limaVM) copyCerts() error { // copy to cache dir dockerCertsCacheDir := filepath.Join(config.CacheDir(), "docker-certs") - if err := l.host.RunQuiet("rm", "-r", dockerCertsCacheDir); err != nil { + if err := l.host.RunQuiet("rm", "-rf", dockerCertsCacheDir); err != nil { return err } if err := l.host.RunQuiet("mkdir", "-p", dockerCertsCacheDir); err != nil {