docker - 错误 : cannot find automatically a registry where to push images - Kamel Kubernetes

标签 docker kubernetes apache-camel dockerfile

我已经安装了带有单个主集群配置的普通 Kubernetes。将 kamel 二进制文件存储到“/usr/local/bin”后,我就可以运行 kamel 命令了。我做了“kamel install --cluster-setup”并且设置很好。然后,当我尝试运行命令“kamel install”时,出现以下错误。

root@camelk:~# kamel install
Error: cannot find automatically a registry where to push images
Usage:
  kamel install [flags]

Flags:
      --base-image string          Set the base image used to run integrations
      --build-strategy string      Set the build strategy
      --build-timeout string       Set how long the build process can last
      --camel-version string       Set the camel version
      --cluster-setup              Execute cluster-wide operations only (may require admin rights)
      --context strings            Add a camel context to build at startup, by default all known contexts are built
      --example                    Install example integration
  -h, --help                       help for install
      --local-repository string    Location of the local maven repository
      --maven-repository strings   Add a maven repository
      --maven-settings string      Configure the source of the maven settings (configmap|secret:name[/key])
      --operator-image string      Set the operator image used for the operator deployment
      --organization string        A organization on the Docker registry that can be used to publish images
  -o, --output string              Output format. One of: json|yaml
  -p, --property strings           Add a camel property
      --registry string            A Docker registry that can be used to publish images
      --registry-insecure          Configure to configure registry access in insecure mode or not
      --registry-secret string     A secret used to push/pull images to the Docker registry
      --runtime-version string     Set the camel-k runtime version
      --skip-cluster-setup         Skip the cluster-setup phase
      --skip-operator-setup        Do not install the operator in the namespace (in case there's a global one)
  -w, --wait                       Waits for the platform to be running

Global Flags:
      --config string      Path to the config file to use for CLI requests
  -n, --namespace string   Namespace to use for all operations

Error: cannot find automatically a registry where to push images

你能帮我一下吗?我错过了任何配置吗?我需要帮助。非常感谢您的时间。

最佳答案

您需要设置 kamel 可以拉/推图像的容器注册表

例如

kamel install --registry=https://index.docker.io/v1/

关于docker - 错误 : cannot find automatically a registry where to push images - Kamel Kubernetes,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56559892/

相关文章:

linux - Bash 脚本在进入 docker 容器时退出

postgresql - minikube 运行 Postgresql 时如何解决权限问题?

java - 为什么我不能在 groovy 中将实现作为参数传递给采用其接口(interface)的方法?

java - Apache Camel : request-reply pattern with bean URIs and async-http-client

java - Camel 简单表达式在运行之间不进行计算

docker - 您可以以非 root 用户身份在非特权容器中运行 DPDK 吗?

docker - 发布 RaspberryPi 3b+ 和 docker compose : Installing build dependencies: finished with status 'error'

jenkins - 我将如何在 CI 中创建包含大量服务的 docker 环境

go - Helm 小枝模板管和/或协商

使用私有(private)仓库的 kubernetes 初始化容器