How do I change the owner of a docker image?

When using a docker registry like then the docker image owner 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
dockerRegistryOwner: my-gcr-project-id
  • specify it in the Environment CRD called dev at env.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