Defining a proxy repository that connects and authenticates against Google Container Registry or Artifact Registry is possible with Sonatype Nexus Repo 3.
To authenticate to these remote registries, Sonatype Nexus Repo requires using long lived service account credentials:
How to Configure a Docker Proxy Repository to Container Registry or Artifact Registry
- Configure the Remote URL to the recommended host names Google documents, without any trailing path information.
- For authentication, go to the repo settings HTTP -> Authentication and set:
- Authentication Type: Username
- Username: _json_key
- Password: paste entire contents of json key file