我正在尝试将本地编写的 OpenFaaS 功能部署到 Minishift。我的 YAML 文件是:
provider:
name: faas
gateway: http://gateway-openfaas.10.10.80.33.nip.io
functions:
test:
lang: python
handler: ./test
image: 172.30.1.1:5000/test
172.30.1.1:5000 是调用的结果
minishift openshift registry
当我通过 Openshift 控制台访问 OpenFaaS UI 时,我可以从那里正确部署功能。我还可以看到我尝试在那里本地部署的功能,但 Docker 映像不在 Minishift Docker 注册表中。要将我的图像推到那里,我正在尝试使用以下命令:
faas-cli push -f ./test.yml
不幸的是,我收到以下错误:
PS D:\projects> faas-cli push -f ./test.yml
[0] > Pushing test.
The push refers to a repository [172.30.1.1:5000/test]
8124325a272a: Preparing
2fbb584cb870: Preparing
e6dd715c8997: Preparing
ac20ff3419a9: Preparing
18adf8f88cf9: Preparing
ab495c1b9bd4: Waiting
09c56bd3ad6c: Waiting
a291b1700920: Waiting
8a65d1376e5b: Waiting
155a0aa5c33a: Waiting
8984417f4638: Waiting
a7d53ea16e81: Waiting
e53f74215d12: Waiting
unauthorized: repository name "test" invalid: it must be of the format
<project>/<name>
2018/03/22 11:30:53 ERROR - Could not execute command: [docker push
172.30.1.1:5000/test]
我做错了什么?任何帮助表示赞赏。