diff --git a/cmd/minikube/cmd/tunnel.go b/cmd/minikube/cmd/tunnel.go index adbe210c54ed..ac0ef218f2c3 100644 --- a/cmd/minikube/cmd/tunnel.go +++ b/cmd/minikube/cmd/tunnel.go @@ -81,7 +81,7 @@ var tunnelCmd = &cobra.Command{ if driver.NeedsPortForward(co.Config.Driver) { - port, err := oci.ForwardedPort(oci.Docker, cname, 22) + port, err := oci.ForwardedPort(co.Config.Driver, cname, 22) if err != nil { exit.Error(reason.DrvPortForward, "error getting ssh port", err) }