nuclio icon indicating copy to clipboard operation
nuclio copied to clipboard

Wrong instructions for deploying functions with nuctl using DockerHub

Open the-gigi opened this issue 5 years ago • 2 comments

The instructios say:

Note: If you are using Docker Hub, the URL here includes your username - registry.hub.docker.com/<username>.

But, actually it should be just the username without the "registry.hub.docker.com/" prefix. Also, it's worth mentioning that you should do docker login before trying to deploy a function.

the-gigi avatar Apr 03 '19 07:04 the-gigi

Hi @the-gigi I know this CAN be done with just your username, but that's an alias. You can (arguably, SHOULD) provide the full address as was mentioned. About which full hostname should be used for dockerhub - ahh now, that was a subject of some discussion over the years and some addresses go invalidated and so on (unrelated to nuclio of course). Since you wrote this we changed the docs to docker.io/<username> which is AFAIK is the latest correct answer to this issue.

As per noting to the user about the existence of docker login - we'll add. we're in the process of reworking some of nuctl logs as we speak

omesser avatar Jul 01 '20 23:07 omesser

Hi @omesser

I have followed the documentation to do the deployment using Kubernetes credential and it doesn't work. I get the following error:

stderr:
denied: requested access to the resource is denied

    /nuclio/pkg/cmdrunner/cmdrunner.go:124
Failed to push image
    /nuclio/pkg/dockerclient/shell.go:137
Failed to push docker image into registry
    .../pkg/containerimagebuilderpusher/docker.go:61
Failed to build processor image
    /nuclio/pkg/processor/build/builder.go:250

I have tried several combinations when creating the credential but they don't work. I have followed the docker.io/ with no success. If I jump into the dashboard container and I run the commands docker login and docker push it works.

pipoe2h avatar Jul 08 '20 12:07 pipoe2h