diff --git a/cmd/minikube/cmd/start.go b/cmd/minikube/cmd/start.go index 4e6783a151..cead4473a4 100644 --- a/cmd/minikube/cmd/start.go +++ b/cmd/minikube/cmd/start.go @@ -432,13 +432,26 @@ func displayEnviron(env []string) { } } -func showKubectlInfo(kcs *kubeconfig.Settings, k8sVersion string, machineName string) error { +func showKubectlInfo(kcs *kubeconfig.Settings, k8sVersion, machineName string) error { if k8sVersion == constants.NoKubernetesVersion { register.Reg.SetStep(register.Done) out.Step(style.Ready, "Done! minikube is ready without Kubernetes!") - out.BoxedWithConfig(box.Config{Py: 1, Px: 4, Type: "Round", Color: "Green"}, style.Tip, "Things to try without Kubernetes ...", `- "minikube ssh" to SSH into minikube's node. + + // Runtime message. + boxConfig := box.Config{Py: 1, Px: 4, Type: "Round", Color: "Green"} + switch viper.GetString(containerRuntime) { + case constants.DefaultContainerRuntime: + out.BoxedWithConfig(boxConfig, style.Tip, "Things to try without Kubernetes ...", `- "minikube ssh" to SSH into minikube's node. - "minikube docker-env" to point your docker-cli to the docker inside minikube. - "minikube image" to build images without docker.`) + case constants.Containerd: + out.BoxedWithConfig(boxConfig, style.Tip, "Things to try without Kubernetes ...", `- "minikube ssh" to SSH into minikube's node. +- "minikube image" to build images without docker.`) + case constants.CRIO: + out.BoxedWithConfig(boxConfig, style.Tip, "Things to try without Kubernetes ...", `- "minikube ssh" to SSH into minikube's node. +- "minikube podman-env" to point your podman-cli to the podman inside minikube. +- "minikube image" to build images without docker.`) + } return nil } diff --git a/pkg/minikube/constants/constants.go b/pkg/minikube/constants/constants.go index 583ad3cda1..4fd5245888 100644 --- a/pkg/minikube/constants/constants.go +++ b/pkg/minikube/constants/constants.go @@ -56,6 +56,8 @@ const ( SSHPort = 22 // RegistryAddonPort os the default registry addon port RegistryAddonPort = 5000 + // Containerd is the default name and spelling for the containerd container runtime + Containerd = "containerd" // CRIO is the default name and spelling for the cri-o container runtime CRIO = "crio" // DefaultContainerRuntime is our default container runtime