问题
这两天配这个nuclio环境的时候 一直卡在最开始那个配nuctl的命令上
就是Getting Started with Nuclio on Docker网址里面这个
nuctl deploy helloworld \
--path https://raw.githubusercontent.com/nuclio/nuclio/master/hack/examples/golang/helloworld/helloworld.go
然后总是有报错

Error - exit status 125
/nuclio/pkg/cmdrunner/shellrunner.go:96
Call stack:
stdout:
Unable to find image 'gcr.io/iguazio/alpine:3.11' locally
docker: Error response from daemon: Get "https://gcr.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers).
See 'docker run --help'.
stderr:
/nuclio/pkg/cmdrunner/shellrunner.go:96
Failed to run container with storage volume
...//nuclio/pkg/platform/local/client/store.go:430
Failed to run cat command
...//nuclio/pkg/platform/local/client/store.go:340
Failed to get projects
...//nuclio/pkg/platform/local/client/store.go:99
Failed getting projects
/nuclio/pkg/platform/local/platform.go:496
我最开始以为是网络连接问题,所以试了试
-
改/etc/hosts
-
改/etc/resolv.conf
-
改docker_proxy
结果都没啥用,注意到报错里面说Unable to find image 'gcr.io/iguazio/alpine:3.11' locally
试了试直接pull这个镜像,也报一样的错

目前pull其他一些image都是正常的,能pull下来,包括单独docker pull alpine也是可以的

解决
后来了解到原因可能是这个docker名字应该被废弃了
于是想到一个操作
首先pull镜像
docker pull alpine:3.11
之后改该镜像名字
> docker images | grep alpine
quay.io/nuclio/handler-builder-golang-onbuild 1.7.1-amd64-alpine e1755b12a9d1 6 days ago 562MB
alpine latest c059bfaa849c 11 days ago 5.59MB
alpine 3.11 a787cb986503 3 weeks ago 5.62MB
> docker tag a787cb986503 gcr.io/iguazio/alpine:3.11
> docker images | grep alpine
quay.io/nuclio/handler-builder-golang-onbuild 1.7.1-amd64-alpine e1755b12a9d1 6 days ago 562MB
alpine latest c059bfaa849c 11 days ago 5.59MB
alpine 3.11 a787cb986503 3 weeks ago 5.62MB
gcr.io/iguazio/alpine 3.11 a787cb986503 3 weeks ago 5.62MB
之后再运行
nuctl deploy helloworld \
--path https://raw.githubusercontent.com/nuclio/nuclio/master/hack/examples/golang/helloworld/helloworld.go
能够正常运行
