Skip to content

func run --build should prompt for registry details on first run #3195

@zedalaye

Description

@zedalaye

In this page : https://knative.dev/docs/getting-started/build-run-deploy-func/ at [kn ] func run step :

Expected Behavior

The function is built/deployed/run as expected

Actual Behavior

Experiments/knative/hello via 🐹 v1.25.4
❯ kn func run --build
Building function image
Error: registry required
Error: exit status 1

Experiments/knative/hello via 🐹 v1.25.4
❯ kn func run
Building function image
Error: registry required
Error: exit status 1

Steps to Reproduce the Problem

  1. I downloaded the dependencies (kind, kn, kn-quickstart, kn-func)
  2. Cluster has been created using kn quickstart kind
  3. Create the sample function and run kn func run

I also tried to rebuild the quickstart cluster with the --registry option and the results are the same:

❯ docker ps
CONTAINER ID   IMAGE                  COMMAND                  CREATED          STATUS          PORTS                                              NAMES
25db8df61e3a   registry:2             "/entrypoint.sh /etc…"   16 minutes ago   Up 16 minutes   0.0.0.0:5001->5000/tcp                             kind-registry
7b6b9c99f1ae   kindest/node:v1.32.0   "/usr/local/bin/entr…"   17 minutes ago   Up 17 minutes   127.0.0.1:41717->6443/tcp, 0.0.0.0:80->31080/tcp   knative-control-plane

Additional Info

Additional context

I'm on Windows with WSL2, docker is installed using Docker Desktop for windows. $
Everything works as expected in WSL2

Install information:

  • Platform (GKE, IKS, AKS, etc.): ?
  • Knative Version: 1.20.0

Metadata

Metadata

Labels

kind/bugCategorizes issue or PR as related to a bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions