Skip to main content

Google Container Registry (GCR)

🔐 Setup Required

The gcr registry module authenticates against Google Container Registry (GCR) and Google Artifact Registry (GAR).


⚙️ Configuration Variables

WUD_REGISTRY_GCR_{registry_name}_CLIENTEMAIL
Requiredstring

Service Account client email address

Allowed values:Valid Service Account email address
WUD_REGISTRY_GCR_{registry_name}_PRIVATEKEY
Requiredstring

Service Account private key

Allowed values:PEM-formatted private key (including `BEGIN` and `END` headers)

🚀 Examples

Authenticate with a Google Service Account

services:
whatsupdocker:
image: getwud/wud
environment:
- WUD_REGISTRY_GCR_PRIVATE_CLIENTEMAIL=wud-reader@myproject.iam.gserviceaccount.com
- WUD_REGISTRY_GCR_PRIVATE_PRIVATEKEY=-----BEGIN PRIVATE KEY-----\nMIIEvgIBADANBgk...==\n-----END PRIVATE KEY-----\n

📖 Setup Guide: Creating a Service Account on Google Cloud Platform

  1. Open the Google Cloud Service Accounts Console.
  2. Click Create Service Account (e.g. wud-reader).
  3. Grant the Artifact Registry Reader or Container Registry Service Agent role.
  4. Open the created Service Account > Keys tab > Add Key > Create new key (JSON).
  5. Download the JSON key file, open it, and copy client_email and private_key into your WUD configuration.