When using a docker registry like gcr.io then the docker image owner gcr.io/owner/myname:1.2.3
can be different to your git owner/organisation.
On Google’s GCR this is usually your GCP Project ID; which you can have many different projects to group images together.
There’s a few options for defining which docker registry owner to use:
- specify it in your
jenkins-x.yml
dockerRegistryHost: gcr.io
dockerRegistryOwner: my-gcr-project-id
- specify it in the Environment CRD called
dev
atenv.spec.teamSettings.dockerRegistryOrg
- define the environment variable
DOCKER_REGISTRY_ORG
If none of those are found then the code defaults to the git repository owner.
For more details the code to resolve it is here