Skip to content

Commit

Permalink
docker: remove cert cache directory before copying host certs (#1112)
Browse files Browse the repository at this point in the history
Signed-off-by: Soedarsono <[email protected]>
  • Loading branch information
soedar authored Aug 16, 2024
1 parent 73732ae commit 4816fd1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions environment/vm/lima/certs.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ 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 {
return err
}
if err := l.host.RunQuiet("mkdir", "-p", dockerCertsCacheDir); err != nil {
return err
}
Expand Down

0 comments on commit 4816fd1

Please sign in to comment.