From 83b27612da810f7daf6936e21dcacabd3345bb80 Mon Sep 17 00:00:00 2001 From: Dave Protasowski Date: Mon, 17 Nov 2025 11:38:06 -0500 Subject: [PATCH] update kn func snippet to suggest use of registry flag if not build --- docs/snippets/proc-running-function.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/snippets/proc-running-function.md b/docs/snippets/proc-running-function.md index 8068690c8e..181cd6f644 100644 --- a/docs/snippets/proc-running-function.md +++ b/docs/snippets/proc-running-function.md @@ -35,14 +35,15 @@ The `run` command builds an image for your function if required, and runs this i === "kn func" - Run the function locally, by running the command inside the project directory: + Run the function locally, by running the command inside the project directory. If you have not yet built the function you will need to provide the `--registry` flag: + ```bash cd hello ``` ```bash - kn func run + kn func run [--registry ] ``` Using this command also builds the function if necessary.