From 81aedea0bd771998b0ce8ab4538d2ec8e7e89150 Mon Sep 17 00:00:00 2001 From: Steven Powell Date: Mon, 15 Nov 2021 11:49:59 -0500 Subject: [PATCH] only check privileged ports for WSL --- cmd/minikube/cmd/start.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/minikube/cmd/start.go b/cmd/minikube/cmd/start.go index cead4473a4..6ca634b355 100644 --- a/cmd/minikube/cmd/start.go +++ b/cmd/minikube/cmd/start.go @@ -1226,7 +1226,7 @@ func validatePorts(ports []string) error { if p > 65535 || p < 1 { return errors.Errorf("Sorry, one of the ports provided with --ports flag is outside range %s", ports) } - if p < 1024 && i == 0 { + if detect.IsMicrosoftWSL() && p < 1024 && i == 0 { return errors.Errorf("Sorry, you cannot use privileged ports on the host (below 1024) %s", ports) } }