From a6f82c354b20783ce3ff7cc6a4b8127b5ed8b9c6 Mon Sep 17 00:00:00 2001 From: Owen Strain Date: Mon, 4 Aug 2025 22:03:05 +0000 Subject: [PATCH] Update running-locally.md sudo example to preserve $PATH --- contributors/devel/running-locally.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contributors/devel/running-locally.md b/contributors/devel/running-locally.md index 250dd394ed3..ec7e0cfb854 100644 --- a/contributors/devel/running-locally.md +++ b/contributors/devel/running-locally.md @@ -83,7 +83,7 @@ cd kubernetes Since root access is sometimes needed to start/stop Kubernetes daemons, `./hack/local-up-cluster.sh` may need to be run as root. If it reports failures, try this instead: ```sh -sudo ./hack/local-up-cluster.sh +sudo -E PATH=$PATH ./hack/local-up-cluster.sh ``` This will build and start a lightweight local cluster, consisting of a master and a single node. Press Control+C to shut it down.