Closed fakoe closed 3 years ago
I want to give you an update about the wrong username:
I created another VM with the exact same settings, except that I changed my github-username to the same as my docker hub username: lobsterjx
Now, when I run jx create quickstart
and select node-http, the "Build Container Build" step of the pipeline works!
Am I missing something, or is this intended to work like that?
Hi @fakoe, seems like a legit bug. Might be a documentation issue. Thank you.
I have same issues, I think improve it is important.
my issues: #7446
first of all, jx read dockerRegistryOwner
from jenkins-x.yml
, if it is nil, jx read config from k8s, if it is nil, jx read DOCKER_REGISTRY_ORG
from env, if it is nil, jx will use git username as dockerRegistry org.
Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale
.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close
.
Provide feedback via https://jenkins-x.io/community.
/lifecycle stale
Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten
.
Rotten issues close after an additional 30d of inactivity.
If this issue is safe to close now please do so with /close
.
Provide feedback via https://jenkins-x.io/community.
/lifecycle rotten
Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen
.
Mark the issue as fresh with /remove-lifecycle rotten
.
Provide feedback via https://jenkins-x.io/community.
/close
@jenkins-x-bot: Closing this issue.
Summary
When executing jx create quickstart -> node-http, the pipeline stops at "Build Container Build" and fails. I'm using a local minikube kubernetes cluster with a non default docker registry set to https://index.docker.io/v1/
Now, before I get the "We don't support minikube anymore" answer again, please let me say this: Jx boot ran without ANY problems (looking good). It setup the git repositories and everything. I don't think that minikube is responsible for this error. Maybe the local installation vs the cloud and me using docker hub instead a default cloud registry, yes. BUT, when you recommend the default docker hub url to me, when I select yes on using a non default registry, then this should work, right?
I followed your recommendations on https://jenkins-x.io/docs/reference/components/docker-registry/#using-docker-hub and recreated the jenkins-docker-cfg, pointing to my .docker/config.json file after I logged into docker (Side note: I also used the same credentials, when I was asked by jx boot, so the config.json file hasn't changed). I re-ran the pipeline after recreating the cfg with the exact same outcome (see "Error" below).
As you can see below, my parameters.yaml, jx-requirements and my kubernetes/values.tmp.yaml are looking like you recommend them to look.
Now, what I suspect: When you look at the Error, the push permission fails for "docker.io/lobster-jx/node-http:0.0.1" aswell as pull, since it claims, that I'm unauthorized. My actual docker hub username is lobsterjx and NOT lobster-jx (that is my git user) lobster-jx isn't my repositories' name either.
I tried multible ways to push a hello-world image to my docker account. All of them worked when I used lobsterjx and all of them failed when I used lobster-jx:
So, I'm assuming, that my github username or my pipeline username is switched with my docker hub username somewhere along the pipeline, since all the docker pushes and pulls in the error-log are with lobster-jx
Can you tell me how I can update my settings, so that the pipeline pushes as lobsterjx and not as lobster-jx?
Error
Steps to reproduce the behavior
Expected behavior
pipeline finishes
Actual behavior
pipeline fails and stopps.
Settings in "jx-requirements.yaml"
Settings in "env/parameters.yaml"
Settings in "kubeProviders/kubernetes/values.tmpl.yaml"