Hello, I built my binderhub using the “zero to binderhub” guide, where as a repository I chose the docker hub. I created my docker hub account to which I can push images manually via ‘docker push’. But despite having
registry:
username: <user>
password: <pass>
in my secret.yaml (where instead of and are my docker hub credentials and
in my config.yaml, my image building process ends with an error message
...
Succesfully built ....
Succesfully tagged ...
denied: requested access to the resource is denied
where docker hub seems to deny the image upload request. The docker image is actually created and I can seem him in the docker images output, with a name and tag binder-<repository-name>-<some-random-hexa-string>, and if I try to docker push it, I get the exact same request denied error.
BUT, if I use docker tag <image-ID> <user>/myimg command to properly tag my image, suddenly docker push works. So somehow, despite setting image tagging in the config file, binderhub improperly tags the image and the docker refuses the upload.
I have actually tried this on 2 independent linux machines, and both give the same error, until I fix the tag, then docker push works. Any idea how to set proper tagging in binderhub (config files, or even hard coding it to helm chart or source code is fine for me)…
REPOSITORY TAG IMAGE ID CREATED SIZE
karthik-2dbinder-2dtest-649047 db6941e4903ed4e97d65e6c67b0d43c624659327 01910bf4b338 7 days ago 4.59GB
nikl123/testimg2 latest 01910bf4b338 7 days ago 4.59GB
and if I do docker push nikl123/testimg2 then it starts pushing ok
The config.yaml clearly states that I want the built docker images to be named nikl123/binder-meta-<something>, but the final image isnt named this way. I wonder if you guys end up with one extra image in the docker images output, that has the correct name, or do you see the same first image that I see and right below the same image, but retagged, which would indicate that binderhub fails on retagging the image rather than naming it wrongly in the first place…
This unfortunately did not help. This is definitely a problem with re-tagging freshly built images properly, because as I have said docker tag... command fixes the issue with pushing images to the docker hub. It is very strange that no one encounters this, I tried installing the most basic binderhub on 3 different linux systems, and all have the same issue, so it is doubtful to me that other people following the zero to binderhub tutorial would not have any issues…
I am using Nixos and installed the most recent python39Packages.jupyter-repo2docker.
I experience the very same described problem (and am very lucky to see that I can still tag and push it)