diff --git a/pkg/minikube/cni/bridge.go b/pkg/minikube/cni/bridge.go index eaea3989e657..eb736abe2d1c 100644 --- a/pkg/minikube/cni/bridge.go +++ b/pkg/minikube/cni/bridge.go @@ -19,6 +19,7 @@ package cni import ( "bytes" "fmt" + "os/exec" "text/template" "github.com/pkg/errors" @@ -84,6 +85,10 @@ func (c Bridge) Apply(r Runner) error { return fmt.Errorf("bridge CNI is incompatible with multi-node clusters") } + if _, err := r.RunCmd(exec.Command("sudo", "mkdir", "-p", "/etc/cni/net.d")); err != nil { + return err + } + f, err := c.netconf() if err != nil { return errors.Wrap(err, "netconf")