GoogleCloudPlatform / kubernetes-engine-windows-tools

Apache License 2.0
4 stars 11 forks source link

gke-windows-builder private registry #13

Open BenHesketh21 opened 1 year ago

BenHesketh21 commented 1 year ago

I'm looking into using Google Cloud Build and gke-windows-builder for building a Windows container image but I'm running into issues when trying to authenticate to a registry thats not a Google Artifact Registry. Please could you advise how to achieve this? Or point me to the right place to ask this question?

I have ran steps before the gke-windows-builder to perform a docker login but then when the container tries to push it is still saying I'm unauthorized.

idofl commented 1 year ago

This is the script that executes in the Windows VM to configure the docker credentials. You can clone this repo, add the required commands to configure docker with your repository's credentials, build the container image, and use your own image instead of the public gke-windows-builder.